This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Make string_view operations involving CharT* *not* noexcept and consistent beween string_view and string_view.tcc.


On Wed, 16 Apr 2014, Jonathan Wakely wrote:

Also, if the built-in strlen is or could be made constexpr then all the char* ctors could be constexpr as well.

I think we'd need to make char_traits<char>::length() constexpr too,
and that's not allowed by the standard.

Shouldn't we have a macro _GLIBCXX_GNU_CONSTEXPR that expands to constexpr with -std=gnu++11 and to nothing with -std=c++11?

--
Marc Glisse


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]