...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::property_tree::ptree_bad_data — Error indicating that translation from given value to the property tree data_type (or vice versa) failed. Derives from ptree_error.
// In header: <boost/property_tree/exceptions.hpp> class ptree_bad_data : public boost::property_tree::ptree_error { public: // public member functions template<typename T> ptree_bad_data(const std::string &, const T &); template<typename T> T data() const; };
ptree_bad_data
public member functionstemplate<typename T> ptree_bad_data(const std::string & what, const T & data);Instantiate a ptree_bad_data instance with the given message and data.
Parameters: |
|
template<typename T> T data() const;Retrieve the data associated with this error. This is the source value that failed to be translated. You need to explicitly specify its type.