Boost property_tree: multiple values per key, on a template class
问题 On this topic, Boost property_tree: multiple values per key, a method is proposed to read multiples keys of a boost tree. I will paste a modified version below template<int dim> struct my_vector { std::vector<double> a_vector; }; The translator would be: template<int dim> struct my_vector_translator { typedef std::string internal_type; typedef my_vector external_type; // Get a my_vector from a string boost::optional<external_type> get_value(const internal_type& str) { if (!str.empty()) { std: