Skip to content

Commit

Permalink
Include <cstddef> in <boost/test/data/size.hpp>
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ibis-hdl committed Feb 2, 2025
1 parent 1018532 commit 27b4cdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/boost/test/data/size.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

// STL
#include <iosfwd>
#include <cstddef>

#include <boost/test/detail/suppress_warnings.hpp>

Expand Down

0 comments on commit 27b4cdd

Please sign in to comment.