Disable test/unwrap_and_construct2 when detail::is_aggregate isn't functional

This commit is contained in:
Peter Dimov
2026-02-25 18:31:23 +02:00
parent 8ce9b50730
commit 59b11b120d
+14 -4
View File
@@ -5,12 +5,11 @@
#include <boost/system/unwrap_and_invoke.hpp>
#include <boost/system/result.hpp>
#include <boost/core/lightweight_test_trait.hpp>
using namespace boost::system;
#include <boost/config/pragma_message.hpp>
struct X
{
int v{};
int v;
};
struct Y
@@ -20,9 +19,18 @@ struct Y
struct E
{
int w{};
int w;
};
#if !defined(BOOST_SYSTEM_HAS_BUILTIN_IS_AGGREGATE) && !( defined(__cpp_lib_is_aggregate) && __cpp_lib_is_aggregate >= 201703L )
BOOST_PRAGMA_MESSAGE("Test skipped, detail::is_aggregate isn't functional")
int main() {}
#else
using namespace boost::system;
int main()
{
{
@@ -127,3 +135,5 @@ int main()
return boost::report_errors();
}
#endif