ptree get_value with name including “.”
问题 "A": "1" "A.B": "2" "A.C": "3" How to get the value of A.B if i iterate through the ptree it works. if i try to get value of pt.get_child("A\.B").get_value<std::string>() . i get the following exception terminate called after throwing an instance of boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::ptree_bad_path> >' what(): No such node please find the complete code below #include <boost/property_tree/ptree.hpp> #include <boost/property