Index: boost/property_tree/ptree_fwd.hpp =================================================================== --- boost/property_tree/ptree_fwd.hpp (revision 61530) +++ boost/property_tree/ptree_fwd.hpp (working copy) @@ -88,8 +88,10 @@ /** Implements a path using a std::string as the key. */ typedef string_path > path; +#ifndef BOOST_NO_STD_WSTRING /** Implements a path using a std::wstring as the key. */ typedef string_path > wpath; +#endif // ndef BOOST_NO_STD_WSTRING /** * A property tree with std::string for key and data, and default Index: boost/property_tree/string_path.hpp =================================================================== --- boost/property_tree/string_path.hpp (revision 61530) +++ boost/property_tree/string_path.hpp (working copy) @@ -57,10 +57,12 @@ { return s; } +#ifndef BOOST_NO_STD_WSTRING inline std::string dump_sequence(const std::wstring &s) { return narrow(s.c_str()); } +#endif // ndef BOOST_NO_STD_WSTRING } /// Default path class. A path is a sequence of values. Groups of values