Skip to content

Conversation

@ibis-hdl
Copy link
Contributor

@ibis-hdl ibis-hdl commented Feb 2, 2025

If datasets are used, <boost/test/data/size.hpp> is also included, as can be seen in the example. The class class size_t uses std::size_t in its API.
MSVC and Gcc indirectly have the definition of std::size_t, while Clang/LibC++ do not have this and a compiler error occurs. This fix will correct this.

If datasets are used, <boost/test/data/size.hpp> is also included, as can be seen in the [example](
    https://www.boost.org/doc/libs/1_87_0/libs/test/doc/html/boost_test/tests_organization/test_cases/test_case_generation/datasets.html#boost_test.tests_organization.test_cases.test_case_generation.datasets.dataset_interface.example_descr).
MSVC and Gcc indirectly have the definition of `std::size_t`, while Clang/LibC++
do not have this and a compiler error occurs. This fix will correct this.
Copy link
Member

@mborland mborland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@mborland mborland merged commit 2c3d6de into boostorg:develop Feb 3, 2025
40 checks passed
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.

2 participants