mirror of
https://github.com/boostorg/optional.git
synced 2026-05-03 19:30:57 +02:00
Testing MSVC bugs
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
struct A
|
||||
{
|
||||
A(int) {}
|
||||
A(A &&) {}
|
||||
};
|
||||
|
||||
struct B
|
||||
{
|
||||
operator A() { return A(1); }
|
||||
operator int() { return 0; }
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
A t = B();
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
struct A
|
||||
{
|
||||
A(int) {}
|
||||
};
|
||||
|
||||
struct B
|
||||
{
|
||||
operator int() { return 0; }
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
A t = B();
|
||||
}
|
||||
Reference in New Issue
Block a user