mirror of
https://github.com/boostorg/optional.git
synced 2026-02-08 23:12:09 +00:00
16 lines
145 B
C++
16 lines
145 B
C++
struct A
|
|
{
|
|
A(int) {}
|
|
A(A &&) {}
|
|
};
|
|
|
|
struct B
|
|
{
|
|
operator A() { return A(1); }
|
|
operator int() { return 0; }
|
|
};
|
|
|
|
int main()
|
|
{
|
|
A t = B();
|
|
} |