Files
optional/test/optional_test_COMPILER_CONVERSION_BUGS1.cpp
2014-09-12 11:57:44 +02:00

18 lines
193 B
C++

struct A
{
A(int) {}
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
A(A &&) {}
#endif
};
struct B
{
operator A() { return A(1); }
operator int() { return 0; }
};
int main()
{
A t = B();
}