Hello,
if i include
On Jul 10, 2022, at 9:25 AM, Gero Peterhoff via Boost
Hello, if i include
i get errors in std::variant: /usr/include/c++/12/variant:774:72: Fehler: Templateargument 4 ist ungültig 774 | void_t
{{std::declval<_Tp>()}})>> | ^~ /usr/include/c++/12/variant:804:76: Fehler: Templateargument 3 ist ungültig 804 | struct __accepted_index<_Tp, _Variant, void_t<_FUN_type<_Tp, _Variant>>> | ^ Can you retrace that? boost 1.79 gcc 12.1 -std=gnu++2b openSuse Tumbleweed
I think we need more information.
How about a complete, self-contained program?
I tried compiling this:
```
#include
Gero Peterhoff wrote:
Hello, if i include
i get errors in std::variant: /usr/include/c++/12/variant:774:72: Fehler: Templateargument 4 ist ungültig 774 | void_t
{{std::declval<_Tp>()}})>> | ^~ /usr/include/c++/12/variant:804:76: Fehler: Templateargument 3 ist ungültig 804 | struct __accepted_index<_Tp, _Variant, void_t<_FUN_type<_Tp, _Variant>>> | ^ Can you retrace that? boost 1.79 gcc 12.1 -std=gnu++2b openSuse Tumbleweed
I can't reproduce this (https://godbolt.org/z/M883ej8qY). There might be something wrong with your configuration, because you seem to be including <variant> from libc++ 12.
participants (3)
-
Gero Peterhoff
-
Marshall Clow
-
pdimov@gmail.com