Subject: Re: [boost] Static constexpr map (was: Re: [gsoc16] Can I quickly check if the below really is the best approach?)
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2016-01-14 23:41:43
On Wed, Jan 13, 2016 at 11:43 AM, Niall Douglas <s_sourceforge_at_[hidden]>
> Sadly, the current proposal for string_view does not provide a
> default Traits length function which is constexpr for const char *.
> Yes, I find that very daft as a default design choice for a
> string_view, but the macro at least makes it not too irritating.
> It uses the existing char_traits classes, which, as you note, are not
(for some *very odd* reasons).
But writing your own traits class that has constexpr len/compare/etc is
really, really simple.
Maybe I'll do that this weekend, and add it to boost. :-)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk