[Boost-bugs] [Boost C++ Libraries] #12980: compile time character array

Subject: [Boost-bugs] [Boost C++ Libraries] #12980: compile time character array
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-04-20 15:05:08


#12980: compile time character array
------------------------------+---------------------------
 Reporter: gast128@… | Owner: no-maintainer
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: utility
  Version: Boost 1.63.0 | Severity: Optimization
 Keywords: |
------------------------------+---------------------------
 The string_view has the following constructor:

 {{{#!cpp
 BOOST_CONSTEXPR basic_string_view(const charT* str)
         : ptr_(str), len_(traits::length(str)) {}
 }}}

 This uses a 'length' call to determine its length. It would be nice if it
 could differentiate between compile time array's and other strings.
 However others have failed as well:

 http://stackoverflow.com/questions/36459703/compile-time-strings-
 constructor-overload-precedence-between-const-char

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12980>
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-04-20 15:09:42 UTC