boostorg / container

STL-like containers from Boost
http://www.boost.org/libs/container/
Boost Software License 1.0
103 stars 113 forks source link

Add support for `boost::string_view` into `container::basic_string` #44

Closed mclow closed 7 years ago

mclow commented 7 years ago

Conversion from a basic_string to a string_view, and make all the comparisons work.

Ion - if you like this, I'll work up some tests, too.

igaztanaga commented 7 years ago

Thanks Marshall. I need to think about it, maybe a templated solution might be a better approach (interoperability with any "view") to avoid injecting boost::string_view dependencies and to support std::string_view and other user-defined views. In any case, your patch is a good starting point.