C++ Logo


Advanced search

Re: [SG10] P0032R3: Homogeneous interface for variant, any and optional

From: Nelson, Clark <clark.nelson_at_[hidden]>
Date: Thu, 7 Sep 2017 17:40:57 +0000
> > Should we go ahead and do that? If not, is the reason that we think
> there were no shipped implementations of the originally-defined
> interfaces for "any" and "optional"?
> There definitely were shipping implementations. I think we should
> update the __cp_lib_any and __cpp_lib_optional macros to reflect the
> changed APIs.

OK. For "any" that's perfectly straightforward.

But for "optional", a macro value of 201606 would mean that *both* P0032 and P0307 ("Making Optional Greater Equal Again") have been implemented, and there's no way to indicate that only one or the other has been implemented.

Hopefully that would not be a problem.


Received on 2017-09-07 19:41:09