Boost logo

Boost :

From: pdimov_at_[hidden]
Date: 2022-07-10 19:59:05


Gero Peterhoff wrote:
> Hello,
> if i include <boost/static_string.hpp> i get errors in std::variant:
>
> /usr/include/c++/12/variant:774:72: Fehler: Templateargument 4 ist ungültig
> 774 | void_t<decltype(_Arr<_Ti>{{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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk