Issues with moving nested variants
artemp opened this issue · 1 comments
artemp commented
The test case above compiles with latest v1.1.4
and also following snippet compiles and runs using clang++ on OSX
#include <mapbox/variant.hpp>
#include <iostream>
using foo = mapbox::util::variant<int, float>;
using bar = mapbox::util::variant<foo, unsigned>;
int main()
{
bar value = foo(3.2f);
std::cerr << mapbox::util::get<float>(mapbox::util::get<foo>(value)) << std::endl;
return 0;
}
clang++ -std=c++14 -I/Users/artem/Projects/mapbox/variant/include nested-variant.cpp -o test
./test
3.2
Closing, feel free to reopen if it's still fails on some platform/compiler combos