github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/3rd_party/boost_ptree_rtti.patch (about) 1 --- ./ptree_implementation_patch.hpp 2018-09-26 19:06:30.216562030 +0800 2 +++ ./ptree_implementation.hpp 2018-09-26 19:02:43.934866865 +0800 3 @@ -667,13 +667,9 @@ 4 if(boost::optional<Type> o = get_value_optional<Type>(tr)) { 5 return *o; 6 } 7 - // BOOST_PROPERTY_TREE_THROW(ptree_bad_data( 8 - // std::string("conversion of data to type \"") + 9 - // typeid(Type).name() + "\" failed", data())); 10 - 11 BOOST_PROPERTY_TREE_THROW(ptree_bad_data( 12 std::string("conversion of data to type \"") + 13 - "\" failed", data())); 14 + typeid(Type).name() + "\" failed", data())); 15 } 16 17 template<class K, class D, class C> 18 @@ -827,12 +823,8 @@ 19 if(optional<data_type> o = tr.put_value(value)) { 20 data() = *o; 21 } else { 22 - // BOOST_PROPERTY_TREE_THROW(ptree_bad_data( 23 - // std::string("conversion of type \"") + typeid(Type).name() + 24 - // "\" to data failed", boost::any())); 25 - 26 BOOST_PROPERTY_TREE_THROW(ptree_bad_data( 27 - std::string("conversion of type \"") + 28 + std::string("conversion of type \"") + typeid(Type).name() + 29 "\" to data failed", boost::any())); 30 } 31 }