From a00335ff4a36200af81f57bbcfcac824bc2a0a83 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Mon, 20 Jan 2025 02:32:17 -0500 Subject: [PATCH] fully declare struct U --- gtsam/base/std_optional_serialization.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/base/std_optional_serialization.h b/gtsam/base/std_optional_serialization.h index 93a5c8dba..265ef1620 100644 --- a/gtsam/base/std_optional_serialization.h +++ b/gtsam/base/std_optional_serialization.h @@ -48,7 +48,7 @@ */ #ifdef __GNUC__ #if __GNUC__ >= 7 && __cplusplus >= 201703L -namespace boost { namespace serialization { struct U; } } +namespace boost { namespace serialization { struct U{}; } } namespace std { template<> struct is_trivially_default_constructible : std::false_type {}; } namespace std { template<> struct is_trivially_copy_constructible : std::false_type {}; } namespace std { template<> struct is_trivially_move_constructible : std::false_type {}; }