On Sat, Sep 3, 2016 at 12:46 PM, Mikhail Strelnikov wrote:
> Hello,
>
> Following code does not compile,
>
> #include
>
> namespace n
> {
> template
> void operator&(T) {}
> struct s{};
> }
>
> int main()
> {
> std::variant v;
> std::get(v);
> }
>
> error: include/c++/7.0.0/var
Hello,
Following code does not compile,
#include
namespace n
{
template
void operator&(T) {}
struct s{};
}
int main()
{
std::variant v;
std::get(v);
}
error: include/c++/7.0.0/variant:315:4: error: invalid static_cast
diff -r -u a/libstdc++-v3/include/std/variant b/libstd