diff --git a/lib/fizzy/value.hpp b/lib/fizzy/value.hpp index 97754d72a9..ddb8f74b92 100644 --- a/lib/fizzy/value.hpp +++ b/lib/fizzy/value.hpp @@ -38,8 +38,6 @@ union Value template constexpr Value(T) = delete; - constexpr operator uint64_t() const noexcept { return i64; } - /// Get the value as the given type. Handy in templates. /// Only required specializations are provided. template diff --git a/test/unittests/value_test.cpp b/test/unittests/value_test.cpp index 269aa86f62..f0f027358b 100644 --- a/test/unittests/value_test.cpp +++ b/test/unittests/value_test.cpp @@ -95,10 +95,3 @@ TEST(value, as_floating_point) EXPECT_EQ(Value{d}.f64, d); EXPECT_EQ(Value{d}.as(), d); } - -TEST(value, implicit_conversion_to_i64) -{ - const Value v{1}; - const uint64_t x = v; - EXPECT_EQ(x, 1); -}