diff --git a/include/fc/variant.hpp b/include/fc/variant.hpp index 48de3af..7dc453a 100644 --- a/include/fc/variant.hpp +++ b/include/fc/variant.hpp @@ -640,6 +640,7 @@ namespace fc template void from_variant( const variant& v, boost::multi_index_container& c, uint32_t max_depth ) { + _FC_ASSERT( max_depth > 0, "Recursion depth exceeded!" ); const variants& vars = v.get_array(); c.clear(); for( const auto& item : vars )