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:
Andrzej Krzemienski
2016-02-18 23:18:01 +01:00
parent 1671966380
commit 44d57a1d8b
20 changed files with 161 additions and 109 deletions

View File

@ -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();
}