mirror of
https://github.com/boostorg/optional.git
synced 2026-02-21 03:12:07 +00:00
Testing MSVC bugs
This commit is contained in:
14
test/optional_test_COMPILER_CONVERSION_BUGS2.cpp
Normal file
14
test/optional_test_COMPILER_CONVERSION_BUGS2.cpp
Normal file
@@ -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