mirror of
https://github.com/boostorg/optional.git
synced 2025-07-15 13:26:37 +02: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,8 +23,8 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
test_converting_assignment<const int>();
|
||||
test_converting_assignment_for_noconst_const<int>();
|
||||
|
||||
#ifndef BOOST_OPTIONAL_CONFIG_NO_PROPER_ASSIGN_FROM_CONST_INT
|
||||
test_converting_assignment<const int, const int>();
|
||||
#endif
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
Reference in New Issue
Block a user