[libcxx-commits] [libcxx] P1957R2: remove special-case for booleans in std::variant (PR #71502)
S. B. Tam via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Nov 14 07:13:33 PST 2023
================
@@ -34,7 +34,7 @@ int main(int, char**)
static_assert(!std::is_constructible<std::variant<int, const bool>, decltype("meow")>::value, "");
static_assert(!std::is_constructible<std::variant<int, const volatile bool>, decltype("meow")>::value, "");
----------------
cpplearner wrote:
The same error as in the `is_assignable` test:
> error: volatile-qualified parameter type 'const volatile bool' is deprecated [-Werror,-Wdeprecated-volatile]
https://github.com/llvm/llvm-project/pull/71502
More information about the libcxx-commits
mailing list