[Boost-bugs] [Boost C++ Libraries] #12466: property_tree::string_path<StringT, TranslatorT>'s operator / won't accept StringT as an argument

Subject: [Boost-bugs] [Boost C++ Libraries] #12466: property_tree::string_path<StringT, TranslatorT>'s operator / won't accept StringT as an argument
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-09-16 07:09:18


#12466: property_tree::string_path<StringT, TranslatorT>'s operator / won't accept
StringT as an argument
------------------------------------+---------------------------
 Reporter: LRFLEW <LRFLEW.Coll@…> | Owner: cornedbee
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: property_tree
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: |
------------------------------------+---------------------------
 A very simple example of the problem can be seen with this code:
 {{{#!C++
 boost::property_tree::path_of<std::string>::type path("parent");
 std::string component("child");
 path / component;
 }}}
 This produces an error of "no match for operator/". I have tested this on
 G++ 6.2.0, VS 14 Update 3, and Apple's clang-800.0.38, and they all
 produce roughly the same error. This issue can be worked around by
 replacing the third line with `path /
 boost::property_tree::path_of<std::string>::type(component)` or `path /
 component.c_str();`, as those types are both explicitly overloaded. Adding
 an additional overload for the String type will fix this issue.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12466>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC