[SG10] P0272: non-const string data
Jens Maurer
Jens.Maurer at gmx.net
Sat Mar 12 10:53:03 CET 2016
On 03/12/2016 02:13 AM, Nevin ":-)" Liber <Nevin :-) Liber wrote:
> On Mar 11, 2016, at 4:02 PM, Jens Maurer <Jens.Maurer at gmx.net> wrote:
>>
>> For
>> s.data()
>>
>> the workaround is something like
>>
>> &s[0]
>>
>> (Both const and non-const.)
>
> It's slightly worse:
>
> v.empty() ? nullptr : &v.front()
Thanks for the correction. I still think we don't need a macro
for a user to enable non-substantial syntactic sugar.
Jens
More information about the Features
mailing list