13#include <gtest/gtest.h>
23 explicit Wrapper(T t) : m_t(t)
39 TEST(IntelCompiler, static_cast_calls_conversion_operator_template)
41 Wrapper<int> wrappedInt(6);
43 int& i1(wrappedInt.operator
int& ());
44 int& i2(
static_cast<int&
>(wrappedInt));
58 explicit IntWrapper(
int t) : m_t(t)
74 TEST(IntelCompiler, static_cast_calls_conversion_operator_notemplate)
76 IntWrapper wrappedInt(6);
78 int& i1(wrappedInt.operator
int& ());
79 int& i2(
static_cast<int&
>(wrappedInt));