Added missing depth check

This commit is contained in:
Peter Conrad 2018-03-12 15:06:17 +01:00
parent 81c8d89341
commit dd9197c9d5

View file

@ -640,6 +640,7 @@ namespace fc
template<typename T, typename... Args>
void from_variant( const variant& v, boost::multi_index_container<T,Args...>& 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 )