12 Sep
2019
12 Sep
'19
2:56 p.m.
On Thu, Sep 12, 2019 at 4:29 PM Bjorn Reese via Boost
On 9/12/19 3:19 PM, Mike via Boost wrote:
b) to conditionally enable support for std::string_view in c++17 (implicit conversion to and explicit construction from string_view)
For the string_view to bikeshedding_string conversion I would prefer a temmplated constructor that takes a container (a Range concept to be precise.) That way it works with any type that has begin() and end(), and we do not create a dependency on std::string_view. The container could be further constrained to those with value_type == char.
That's fine from std::string_view to fixed_capacity_string. But the reverse would be awkward, and not an implicit conversion to std::string_view, no? --DD