15 #include <gtest/gtest.h>
25 explicit Wrapper(T t) : m_t(t)
41 TEST(IntelCompiler, static_cast_calls_conversion_operator_template)
43 Wrapper<int> wrappedInt(6);
45 int& i1(wrappedInt.operator
int& ());
46 int& i2(
static_cast<int&
>(wrappedInt));
60 explicit IntWrapper(
int t) : m_t(t)
76 TEST(IntelCompiler, static_cast_calls_conversion_operator_notemplate)
78 IntWrapper wrappedInt(6);
80 int& i1(wrappedInt.operator
int& ());
81 int& i2(
static_cast<int&
>(wrappedInt));