id summary reporter owner description type status milestone component version severity resolution keywords cc 13108 BOOST_STATIC_ASSERT occurs when serializing a class with default constructor explicitly defined nest_kds@… Robert Ramey "the following code gives an error: {{{ struct myStruct_assert{ myStruct_assert(){} int objectId; }; BOOST_STATIC_ASSERT( boost::serialization::detail::is_default_constructible< myStruct_assert >::value ); }}} error C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE with [ x=false ]' while the following code produces no error {{{ struct myStruct_noassert{ int objectId; }; BOOST_STATIC_ASSERT( boost::serialization::detail::is_default_constructible< myStruct_noassert >::value ); }}} Also, in case of {{{ boost::optional< int > objectId; }}} the error is produced in both cases - with or without default constructor specified boost libraries are compiled with following parameters: {{{ toolset=msvc-9.0 variant=debug threading=multi link=shared/static BOOST_USE_WINAPI_VERSION=0x0501 _BIND_​TO_CURRENT_VCLIBS_VERSION BOOST_ALL_DYN_LINK BOOST_OPTIONAL_USE_OLD_DEFINITION_OF_NONE BOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL }}} " Bugs closed To Be Determined serialization Boost 1.64.0 Problem wontfix