2
0
mirror of https://github.com/boostorg/uuid.git synced 2026-01-19 04:42:16 +00:00

Disable test_string_generator_cx2 under GCC 5

This commit is contained in:
Peter Dimov
2025-12-23 11:37:33 +02:00
parent 7b063dde86
commit da0ce8406a

View File

@@ -7,9 +7,20 @@
#include <boost/uuid/uuid_io.hpp>
#include <boost/core/lightweight_test.hpp>
#define CXX14_CONSTEXPR BOOST_CXX14_CONSTEXPR
#if defined(BOOST_GCC) && BOOST_GCC < 60000
// GCC 5 doesn't consider string_generator::operator()(first, last) constexpr
# undef CXX14_CONSTEXPR
# define CXX14_CONSTEXPR
#endif
using namespace boost::uuids;
#define TEST(str) { BOOST_CXX14_CONSTEXPR auto u = string_generator()(str); BOOST_TEST_EQ(u, expected); }
#define TEST(str) { CXX14_CONSTEXPR auto u = string_generator()(str); BOOST_TEST_EQ(u, expected); }
int main()
{