Ticket #4145: boost-property_tree-fix.diff

File boost-property_tree-fix.diff, 1.2 KB (added by Jan-Hein Bührman <buhrman@…>, 13 years ago)
  • boost/property_tree/ptree_fwd.hpp

     
    8888    /** Implements a path using a std::string as the key. */
    8989    typedef string_path<std::string, id_translator<std::string> > path;
    9090
     91#ifndef BOOST_NO_STD_WSTRING
    9192    /** Implements a path using a std::wstring as the key. */
    9293    typedef string_path<std::wstring, id_translator<std::wstring> > wpath;
     94#endif  // ndef BOOST_NO_STD_WSTRING
    9395
    9496    /**
    9597     * A property tree with std::string for key and data, and default
  • boost/property_tree/string_path.hpp

     
    5757        {
    5858            return s;
    5959        }
     60#ifndef BOOST_NO_STD_WSTRING
    6061        inline std::string dump_sequence(const std::wstring &s)
    6162        {
    6263            return narrow(s.c_str());
    6364        }
     65#endif // ndef BOOST_NO_STD_WSTRING
    6466    }
    6567
    6668    /// Default path class. A path is a sequence of values. Groups of values