Skip to content

Commit 27b4cdd

Browse files
committed
Include <cstddef> in <boost/test/data/size.hpp>
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.
1 parent 1018532 commit 27b4cdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/boost/test/data/size.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
// STL
1919
#include <iosfwd>
20+
#include <cstddef>
2021

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

0 commit comments

Comments
 (0)