[RFA 7/8] Use unique_xmalloc_ptr in execute_gdb_command
Thu Dec 22 15:29:00 GMT 2016
>>>>> "Pedro" == Pedro Alves <firstname.lastname@example.org> writes:
>> It looks like the accepted fix upstream to use the C++17 [[nodiscard]]
>> attribute; not sure if we can use that somehow.
Pedro> Can't see why not, if we put it behind some ATTRIBUTE_NODISCARD or
Pedro> some such define.
It wasn't obvious to me (and as you can tell I'm not doing much research
into this kind of thing lately...) what condition to use. C++17 isn't
official yet, and presumably even if we had some value for __cplusplus
to check, we'd also have to check for when exactly it was added to g++?
More information about the Gdb-patches