C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] Feature test macro for variant<bool, string> taking const char* fix?
From: Barry Revzin (barry.revzin_at_[hidden])
Date: 2020-12-06 16:16:49


On Sun, Dec 6, 2020 at 3:18 PM Emile Cormier via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> Hi Everyone,
>
> Is there a feature test macro for P0608 and P1957, which fix the problem
> of constructing a variant<bool, string> with a const char*?
>
> According to the C++20 draft, the __cpp_­lib_­variant macro is still stuck
> at 201606L and I cannot find any other macro concerning this.
>
> Cheers,
> Emile Cormier
>

Do you have an example of code that you would want to write, given such a
macro?

Barry



STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups