Skip to content

Conversation

@ABBAPOH
Copy link
Contributor

@ABBAPOH ABBAPOH commented May 3, 2021

Some 3rdparty parsers (e.g. Qt moc) fail to parse the bitand.hpp
due to the fact that bitand is a keyword in C++, not a macro.
Modern MSVC versions define bitand/bitor only if __cplusplus macro
is not defined, see iso646.h: https://pastebin.com/zTcd0juT

Thus, boost can also check the macro only in C mode making moc happy

@ABBAPOH
Copy link
Contributor Author

ABBAPOH commented May 3, 2021

@jeking3
Copy link
Collaborator

jeking3 commented May 1, 2022

@ABBAPOH please rebase on develop to run all tests - thanks.

Some 3rdparty parsers (e.g. Qt moc) fail to parse the bitand.hpp
due to the fact that bitand is a keyword in C++, not a macro.
Modern MSVC versions define bitand/bitor only if __cplusplus macro
is not defined, see iso646.h: https://pastebin.com/zTcd0juT

Thus, boost can also check the macro only in C mode making moc happy
@ABBAPOH
Copy link
Contributor Author

ABBAPOH commented Aug 4, 2022

@jeking3
Sorry for the delay, I missed your comment.

Is it OK btw that the first check is only checks #if defined(_MSC_VER) but the second also checks clang #if defined(_MSC_VER) && !defined(__clang__) ?

heinermann added a commit to heinermann/ChkForge that referenced this pull request Jun 19, 2023
Flamefire and others added 19 commits January 3, 2025 14:00
Newer compilers may warn when using `0`, e.g.:
```
./boost/iterator/detail/facade_iterator_category.hpp:161:5: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]
    BOOST_MPL_ASSERT_NOT((is_iterator_category<Traversal>));
    ^
./boost/mpl/assert.hpp:324:58: note: expanded from macro 'BOOST_MPL_ASSERT_NOT'
              boost::mpl::assert_not_arg( (void (*) pred)0, 1 ) \
```
Trying to form next/prior in constant evaluation may be ill-formed; see boostorg#69
Apply change since C++11
* Make the library modular usable.

* Switch to library requirements instead of source. As source puts extra source in install targets.

* Add requires-b2 check to top-level build file.

* Bump B2 require to 5.2

* Change all <source> references to <library>.

* Update copyright dates.

* Move inter-lib dependencies to a project variable and into the build targets.

* Update build deps.
@jeking3
Copy link
Collaborator

jeking3 commented Jan 3, 2025

See #83

@jeking3 jeking3 closed this Jan 3, 2025
@ABBAPOH
Copy link
Contributor Author

ABBAPOH commented Jan 9, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants