...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_path — Error indicating that specified path does not exist. Derives from ptree_error.
// In header: <boost/property_tree/exceptions.hpp> class ptree_bad_path : public boost::property_tree::ptree_error { public: // public member functions template<typename T> ptree_bad_path(const std::string &, const T &); template<typename T> T path() const; };
ptree_bad_path
public member functionstemplate<typename T> ptree_bad_path(const std::string & what, const T & path);Instantiate a ptree_bad_path with the given message and path data.
Parameters: |
|
template<typename T> T path() const;Retrieve the invalid path. You need to explicitly specify the type of path.