-
Notifications
You must be signed in to change notification settings - Fork 94
C++20 module support #104
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
Closed
Closed
C++20 module support #104
Changes from all commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
8a4416f
Initial implementation
anarthal da9305f
check_cmake_version
anarthal 3808ec9
mp_size
anarthal 904ee5d
detail/modules.hpp
anarthal 7249a36
mp_size_2
anarthal 7da0531
Use CMake helper function
anarthal 224e8e7
Temporarily comment tests
anarthal c86e5a0
Recovered 10 more tests
anarthal ebdb3c4
Rename module to boost_xxx.cpppm
anarthal 97e83bc
BASE_DIRS
anarthal 2d0cd75
extern C++
anarthal 3bf2419
Rename config macro to BOOST_USE_MODULES
anarthal 05d398e
Tests: list that don't require ifdefs
anarthal df6c026
Missing exports in bind and mp_plus
anarthal 252ddc7
Tests: algorithm 1
anarthal 4283284
Finished list tests
anarthal a792291
Algorithm tests 2
anarthal 8354e2c
Non-cmake algorithm test
anarthal 40165f8
tests: integral
anarthal a7f9b00
Tests: compile
anarthal ed0935f
Utility tests
anarthal 23871f8
Integer sequence tests
anarthal e4294bc
Missing exports in tuple
anarthal 13c3bce
Tests: tuple
anarthal 9f7574d
Set modularization and tests
anarthal 36f58d0
Tests: function
anarthal f4c4e60
Map tests and modularization
anarthal 8057e78
Bind tests
anarthal 561cf44
Lambda tests and modularization
anarthal df2c079
Version tests
anarthal c35971e
Move away from BOOST_MODULE_EXPORT
anarthal 87b5093
Follow format conventions
anarthal 0db3440
CI prototype
anarthal 9259563
force CI run
anarthal d40a6e0
Incorrect script path
anarthal 7e06b93
Incorrect script path (2)
anarthal 7c9f142
Added some modules CIs
anarthal 2cace6f
Experiment with null container
anarthal 71cfe04
Install packages
anarthal 27c0e8f
Missing git and flags
anarthal ad34be9
Missing ca-certificates
anarthal 3ec117b
Missing python
anarthal 4981334
Update remotes and install fixes
anarthal 4dc9e3e
Move away from boost_set_cxx20_module_settings
anarthal 965e512
Missing export in CI
anarthal 269a621
Guards for add_subdir/install tests
anarthal 417c6dd
Increase max cmake version of tests
anarthal 78d9ef2
Recover the other posix flows
anarthal efe931b
Add Windows CMake add_subdirectory for modules
anarthal 2a2a64b
Incorrect matrix reference
anarthal 1369aa5
Remove install packages condition
anarthal de4b613
Add call to vcvarsall
anarthal 1ef600d
add cmd /c
anarthal 8b55719
Replace /c by /k
anarthal a3daecc
Move cmd /k location
anarthal d28ed4b
Attempt with call
anarthal 8b67df4
Windows install modules
anarthal 05ead52
Missing vcvarsall calls
anarthal 38dfa0f
Run tests Windows
anarthal 63dce8f
Missing cmake args
anarthal fd36f27
Missing __scope in header-only build
anarthal 442ee2d
Missing -DBOOST_USE_MODULES=1
anarthal 478901d
Separate Posix add_subdirectory workflow
anarthal 38f54bc
Install workflow for modules in posix
anarthal e950579
Posix cmake test with modules
anarthal 037fc1c
Missing BOOST_USE_MODULES
anarthal 89b6066
Cleanup and recover all module builds
anarthal 413faae
Recover the other builds
anarthal 0b2f029
Cleanup existing workflows
anarthal 810f292
Missing clone of Boost.Build
anarthal 3f98b3b
Missing boost_install
anarthal d05eaaf
Recover depinst
anarthal 2aff610
Update setup script
anarthal 87fd498
Experiment with export using
anarthal 9e36eb3
Experiment with import in GMF
anarthal e7fe52a
Export using cleanup
anarthal bd86b4d
Merge branch 'develop' into feature/cxx20-modules
anarthal 268f361
Modularize mp_from_sequence_3
anarthal 76759bd
Recover all CIs
anarthal ea45418
Fix standalone CMake
anarthal f6cd1d7
Guard cmake_policy
anarthal e19dc20
Migrate the library to use compatibility headers
anarthal 62be460
Migrate tests to compatibility headers
anarthal c4ba590
Missing detail/config include in tuple_transform_2
anarthal cf7f209
Compat headers
anarthal cdec621
Remove BOOST_CONFIG_SKIP_IMPORT_STD
anarthal 162f57d
Merge remote-tracking branch 'upstream/develop' into feature/cxx20-mo…
anarthal 51d6028
Merge branch 'develop' into feature/cxx20-modules
anarthal ff9f2c2
Prevent GMF discards
anarthal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #ifdef BOOST_USE_MODULES | ||
| #ifndef BOOST_COMPATIBILITY_HEADERS_SKIP_IMPORT | ||
| import std; | ||
| #endif | ||
| #else | ||
| #include <cassert> | ||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #ifdef BOOST_USE_MODULES | ||
| #ifndef BOOST_COMPATIBILITY_HEADERS_SKIP_IMPORT | ||
| import std; | ||
| #endif | ||
| #else | ||
| #include <cstddef> | ||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #ifdef BOOST_USE_MODULES | ||
| #ifndef BOOST_COMPATIBILITY_HEADERS_SKIP_IMPORT | ||
| import std; | ||
| #endif | ||
| #else | ||
| #include <tuple> | ||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #ifdef BOOST_USE_MODULES | ||
| #ifndef BOOST_COMPATIBILITY_HEADERS_SKIP_IMPORT | ||
| import std; | ||
| #endif | ||
| #else | ||
| #include <type_traits> | ||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #ifdef BOOST_USE_MODULES | ||
| #ifndef BOOST_COMPATIBILITY_HEADERS_SKIP_IMPORT | ||
| import std; | ||
| #endif | ||
| #else | ||
| #include <utility> | ||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Say, if another library includes multiple MP11 headers and thus produces multiple
importstatements. Would this be harmful in any way? For example, would this affect compilation performance? Would it make sense to move the above two lines in a separate internal header with its own include guard, so that only oneimportis produced, no matter how many interface headers are included?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there is any performance penalty in importing several times.