forked from boostorg/optional
Testing MSVC bugs
This commit is contained in:
1 parent
eef3bfe079
commit
bda2001935
2 files changed
+30
No files matched your search
@@ -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