On 04/25/2018 11:41 AM, David Malcolm wrote:
Jason Turner's video C++ Weekly - Ep 112 - GCC's Leaky Abstractions shows
two issues where g++ offers suggestions about implementation details:

For the lambda capture case, there are multiple members:

$9 = <function_decl 0x7ffff1a1dd00 __ct >

These names have a space at the end, so the user cannot name them. We could move the space to the beginning, if that helps?

$21 = <field_decl 0x7ffff19d57b8 __val>
$23 = <type_decl 0x7ffff19d58e8 __lambda0>

These two could also have the space treatment.

$22 = <function_decl 0x7ffff1a1d200 operator()>

This is a perfectly serviceable user available function, just as any member operator function.

nathan
--
Nathan Sidwell

Reply via email to