13 Mar
2017
13 Mar
'17
12:49 p.m.
This is a long known issue. You should implement your own string comparison routine which is constexpr. As you mention, Boost's string_view is constrained by the STL's implementation of char_traits.
Would it be OK to implement our own constexpr char_traits(just replace ::compare, ::length), then use
boost::basic_string_view