Skip to content

Conversation

@Lastique
Copy link
Member

@Lastique Lastique commented Dec 11, 2025

This follows this discussion on the Boost ML.

This merges the sources, documentation, tests and examples of Boost.StaticAssert into Boost.Config. Documentation has been updated to be a part of Boost.Config documentation. One other change is use a more specific include from Boost.TypeTraits in static_assert_example_2. The rest is unchanged and at the state of Boost 1.90.0 release (https://github.com/boostorg/static_assert/tree/boost-1.90.0).

The test/cmake_install_test and test/cmake_subdir_test directories from Boost.StaticAssert are not included in this PR. These tests were not enabled since Travis CI went down and are not applicable to the merged Boost.StaticAssert as these tests check for whether Boost.StaticAssert is usable from CMake. Similar tests could be written for Boost.Config, but that would have to be a separate work.

This PR must be merged together with boostorg/static_assert#18

jzmaddock and others added 30 commits December 3, 2000 12:29
[SVN r9836]
[SVN r15351]
[SVN r20237]
…irit, because of two header files both having a static assert at the same line.

[SVN r21364]
[SVN r28280]
Updated examples to match new docs.


[SVN r28289]
…texts, specifically it works inside tempalte function contexts which the standard one doesn't. This makes all tests pass for this compiler for the first time.

[SVN r28941]
@Lastique
Copy link
Member Author

Note: the CI is failing because the boost/static_assert.hpp header exists both in this PR and in develop of Boost.StaticAssert. This will be resolved when Boost.StaticAssert PR is merged that will remove the header from there.

@Lastique
Copy link
Member Author

@pdimov, please see if this works for you. And perhaps you could coordinate the merge of the two PRs together.

@Lastique Lastique force-pushed the feature/move_static_assert branch from a6b2981 to ff12ac2 Compare December 11, 2025 22:58
@pdimov
Copy link
Member

pdimov commented Dec 12, 2025

This doesn't retain the history of boost/static_assert.hpp. I'm not sure if we need to care about that, though.

@Lastique
Copy link
Member Author

I'll see if I can extract with history, but I'm not sure it'll work if there are commits that touch paths that are present in Boost.Config.

@Lastique Lastique force-pushed the feature/move_static_assert branch from ff12ac2 to e6bc43f Compare December 12, 2025 23:29
@Lastique
Copy link
Member Author

Lastique commented Dec 12, 2025

I've added Boost.StaticAssert history. Commit hashes will be different from the original git repo since the history has been filtered from the bits that are not included in this merge.

Also, I trimmed trailing spaces and newlines in Boost.StaticAssert sources (as a separate commit).

@pdimov
Copy link
Member

pdimov commented Dec 14, 2025

I think we should delay this until the b2 msvc-14.5 update (hopefully soon) and the associated changes here in Config.

@Lastique
Copy link
Member Author

Ok. Let me know if and when I need to do anything here.

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.