Skip to content

Commit

Permalink
Merge branch 'feature/pr-107' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Nov 5, 2023
2 parents 269ec7e + 3b7c3cc commit 4748bdb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/boost/property_tree/detail/ptree_implementation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <boost/iterator/reverse_iterator.hpp>
#include <boost/assert.hpp>
#include <boost/core/invoke_swap.hpp>
#include <boost/core/type_name.hpp>
#include <memory>

#if (defined(BOOST_MSVC) && \
Expand Down Expand Up @@ -669,7 +670,7 @@ namespace boost { namespace property_tree
}
BOOST_PROPERTY_TREE_THROW(ptree_bad_data(
std::string("conversion of data to type \"") +
typeid(Type).name() + "\" failed", data()));
boost::core::type_name<Type>() + "\" failed", data()));
}

template<class K, class D, class C>
Expand Down Expand Up @@ -824,7 +825,7 @@ namespace boost { namespace property_tree
data() = *o;
} else {
BOOST_PROPERTY_TREE_THROW(ptree_bad_data(
std::string("conversion of type \"") + typeid(Type).name() +
std::string("conversion of type \"") + boost::core::type_name<Type>() +
"\" to data failed", boost::any()));
}
}
Expand Down

0 comments on commit 4748bdb

Please sign in to comment.