Skip to content

Commit 411b9a9

Browse files
committed
explicitly require default construction in value_to for described classes
1 parent b031e0d commit 411b9a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/boost/json/detail/value_to.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ value_to_impl(
401401
value const& jv,
402402
Ctx const& ctx )
403403
{
404+
BOOST_STATIC_ASSERT( std::is_default_constructible<T>::value );
404405
result<T> res;
405406

406407
auto* obj = jv.if_object();

0 commit comments

Comments
 (0)