Date: Sat, 12 Mar 2016 10:53:03 +0100
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_[hidden]> 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
> On Mar 11, 2016, at 4:02 PM, Jens Maurer <Jens.Maurer_at_[hidden]> 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
Received on 2016-03-12 10:58:27