mirror of
https://github.com/boostorg/optional.git
synced 2026-02-14 13:02:09 +00:00
18 lines
193 B
C++
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();
|
|
} |