Fix missing std qualifier for ASAN

This commit is contained in:
Nikola Matic 2023-09-05 08:49:23 +02:00
parent e43968599e
commit ae36323edb

View File

@ -493,7 +493,7 @@ BOOST_AUTO_TEST_CASE(constant_optimization_early_exit)
#endif #endif
#endif #endif
#if __SANITIZE_ADDRESS__ #if __SANITIZE_ADDRESS__
maxDuration = numeric_limits<size_t>::max(); maxDuration = std::numeric_limits<size_t>::max();
BOOST_TEST_MESSAGE("Disabled constant optimizer run time check for address sanitizer build."); BOOST_TEST_MESSAGE("Disabled constant optimizer run time check for address sanitizer build.");
#endif #endif
BOOST_CHECK_MESSAGE(duration <= double(maxDuration), "Compilation of constants took longer than 20 seconds."); BOOST_CHECK_MESSAGE(duration <= double(maxDuration), "Compilation of constants took longer than 20 seconds.");