boostorg / static_string

A fixed capacity dynamically sized string
http://boost.org/libs/static_string
Boost Software License 1.0
63 stars 29 forks source link

comparison operators: add support for `std::string` and `std::string_view` #29

Closed timblechmann closed 1 year ago

timblechmann commented 2 years ago

static_string lacks the comparison operators to interact with std::string and std::string_view. this limits its usefulness when interacting with these types. e.g. when using a string_view to perform a lookup in a std::map<static_string, ...>

timblechmann commented 2 years ago

i've done some more experiments of going through boost::core::string_view. there are a few caveats, though:

it would certainly be a cleaner approach, though

vinniefalco commented 2 years ago

char traits is a design flaw in C++

alandefreitas commented 1 year ago

Obsoleted by #45