Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TopoSorter: Only allow certain params to be incomplete #392

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

ajor
Copy link
Contributor

@ajor ajor commented Oct 25, 2023

For the containers which are allowed to be declared with incomplete types, it is only the contained types which are allowed to be incomplete. Other template parameters (e.g. allocators) must always be defined before use.

@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2023

Codecov Report

Merging #392 (1c63505) into main (fcb50df) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #392      +/-   ##
==========================================
+ Coverage   68.62%   68.66%   +0.03%     
==========================================
  Files         116      116              
  Lines       11439    11449      +10     
  Branches     1903     1904       +1     
==========================================
+ Hits         7850     7861      +11     
+ Misses       2610     2609       -1     
  Partials      979      979              
Files Coverage Δ
oi/type_graph/TopoSorter.cpp 93.50% <100.00%> (+0.54%) ⬆️
test/test_topo_sorter.cpp 99.37% <100.00%> (+0.01%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

oi/type_graph/TopoSorter.cpp Outdated Show resolved Hide resolved
oi/type_graph/TopoSorter.cpp Outdated Show resolved Hide resolved
For the containers which are allowed to be declared with incomplete
types, it is only the contained types which are allowed to be
incomplete. Other template parameters (e.g. allocators) must always be
defined before use.
@ajor ajor force-pushed the topo-sorter-incomplete branch from 1c63505 to c5360ec Compare October 25, 2023 14:51
@ajor ajor merged commit e7581ad into facebookexperimental:main Oct 25, 2023
4 checks passed
@ajor ajor deleted the topo-sorter-incomplete branch October 25, 2023 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants