[SG10] Feature-testing macros for spaceship operator

Jens Maurer Jens.Maurer at gmx.net
Thu Aug 2 22:41:27 CEST 2018


On 07/30/2018 07:55 PM, Richard Smith wrote:
> On Sun, 29 Jul 2018 at 01:21, Ville Voutilainen <ville.voutilainen at gmail.com <mailto:ville.voutilainen at gmail.com>> wrote:
> 
>     Hi! It seems reasonable to enable spaceship operator support
>     for 3rd party types conditionally. See
>     https://codereview.qt-project.org/#/c/235303/
> 
> 
> I agree.
> 
>     Perhaps __cpp_spaceship and __cpp_lib_spaceship,
>     for the language feature and the library support, respectively?
> 
> 
> I think I would weakly prefer __cpp_three_way_comparison / __cpp_lib_three_way_comparison.

Sounds good to me.  (Yes, we should reserve the "spaceship" joke
for the standard's section label.)

Jens


More information about the Features mailing list