Re: [Boost-bugs] [Boost C++ Libraries] #12897: [Utility] string_view's comparison operators are not marked "constexpr"

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12897: [Utility] string_view's comparison operators are not marked "constexpr"
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-05-08 17:08:07


#12897: [Utility] string_view's comparison operators are not marked "constexpr"
-------------------------------+-----------------------------------
  Reporter: vicluo96@… | Owner: marshall
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: utility
   Version: Boost 1.63.0 | Severity: Problem
Resolution: fixed | Keywords: string_view,constexpr
-------------------------------+-----------------------------------
Changes (by marshall):

 * status: new => closed
 * resolution: => fixed

Comment:

 I have added constexpr to the `string_view` comparison calls (and
 operators), so that if you use a traits class that has a constexpr
 `compare` method, you'll get constexpr comparisons.

 Boost doesn't have a char_traits implementation, constexpr or otherwise.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12897#comment:2>
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-05-08 17:11:46 UTC