#include "catch.hpp" #include #include // https://github.com/mapbox/variant/issues/122 struct X { template X(const ValueType&) {} }; TEST_CASE("Correctly choose appropriate constructor", "[variant]") { mapbox::util::variant a{123}; decltype(a) b(a); REQUIRE(a.which() == b.which()); }