-
Notifications
You must be signed in to change notification settings - Fork 166
Rewrite modules following the new recommended Boost practice #196
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5ec603c
Rewrite modules to the new recommended Boost practice
apolukhin 3792637
fixes and tests
apolukhin 56a0f2d
fix
apolukhin 709a25d
fix
apolukhin 6be268d
more fixes
apolukhin 8971c38
CI fixes
apolukhin 0c8d6e4
fix attempt
apolukhin 282f645
CI fixes
apolukhin b120be8
Review fixes (more to come)
apolukhin d3b3904
CI fixes
apolukhin 34a9890
Attempt to reduce boilerplate
apolukhin 622e4c9
CI fix
apolukhin 9e43d26
CI fix attempt
apolukhin 5182bda
fix
apolukhin bb1bc0a
CI fixes
apolukhin 1a996e9
Force non-global module fragment usage for PFR
apolukhin 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
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 |
|---|---|---|
|
|
@@ -8,8 +8,10 @@ | |
| #define BOOST_PFR_CONFIG_HPP | ||
| #pragma once | ||
|
|
||
| #if __cplusplus >= 201402L || (defined(_MSC_VER) && defined(_MSVC_LANG) && _MSC_VER > 1900) | ||
| #if !defined(BOOST_USE_MODULES) && (__cplusplus >= 201402L || (defined(_MSC_VER) && defined(_MSVC_LANG) && _MSC_VER > 1900)) | ||
| #include <type_traits> // to get non standard platform macro definitions (__GLIBCXX__ for example) | ||
| #elif defined(BOOST_USE_MODULES) | ||
| #include <version> | ||
| #endif | ||
|
|
||
| /// \file boost/pfr/config.hpp | ||
|
|
@@ -70,8 +72,10 @@ | |
| #endif | ||
|
|
||
| #ifndef BOOST_PFR_USE_STD_MAKE_INTEGRAL_SEQUENCE | ||
| # if defined(BOOST_USE_MODULES) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe you can attempt to include |
||
| # define BOOST_PFR_USE_STD_MAKE_INTEGRAL_SEQUENCE 1 | ||
| // Assume that libstdc++ since GCC-7.3 does not have linear instantiation depth in std::make_integral_sequence | ||
| # if defined( __GLIBCXX__) && __GLIBCXX__ >= 20180101 | ||
| # elif defined( __GLIBCXX__) && __GLIBCXX__ >= 20180101 | ||
| # define BOOST_PFR_USE_STD_MAKE_INTEGRAL_SEQUENCE 1 | ||
| # elif defined(_MSC_VER) | ||
| # define BOOST_PFR_USE_STD_MAKE_INTEGRAL_SEQUENCE 1 | ||
|
|
@@ -145,12 +149,16 @@ | |
|
|
||
| #undef BOOST_PFR_NOT_SUPPORTED | ||
|
|
||
| #ifndef BOOST_PFR_BEGIN_MODULE_EXPORT | ||
| #ifdef BOOST_PFR_INTERFACE_UNIT | ||
| # define BOOST_PFR_BEGIN_MODULE_EXPORT export { | ||
| # define BOOST_PFR_END_MODULE_EXPORT } | ||
| #else | ||
| # define BOOST_PFR_BEGIN_MODULE_EXPORT | ||
| # define BOOST_PFR_END_MODULE_EXPORT | ||
| #endif | ||
|
|
||
| #ifndef BOOST_PFR_END_MODULE_EXPORT | ||
| # define BOOST_PFR_END_MODULE_EXPORT | ||
| #if defined(BOOST_USE_MODULES) && !defined(BOOST_PFR_INTERFACE_UNIT) | ||
| import boost.pfr; | ||
| #endif | ||
|
|
||
| #endif // BOOST_PFR_CONFIG_HPP | ||
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.
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.
I'd strongly advise to add a job covering modules under MSVC, since it's much more restrictive than clang. You can have a look at my mp11/charconv proposal for some inspiration.