mirror of
https://github.com/boostorg/optional.git
synced 2025-11-03 01:02:15 +01:00
Fix: prevented the binding illegal temporary to optional<const int&>
Older MSVC versions add illegal temporary when you want to assign from const integral value.
This commit is contained in:
@@ -23,7 +23,8 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
test_converting_assignment<int>();
|
||||
test_converting_assignment<int, int>();
|
||||
test_converting_assignment<int, const int>();
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user