forked from boostorg/optional
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:
1 parent
1671966380
commit
44d57a1d8b
20 files changed
+161
-109
No files matched your search
@@ -25,9 +25,9 @@
|
||||
template <typename T>
|
||||
void test_all_const_cases()
|
||||
{
|
||||
test_converting_assignment<T>();
|
||||
test_converting_assignment<const T>();
|
||||
test_converting_assignment_for_noconst_const<T>();
|
||||
test_converting_assignment<T, T>();
|
||||
test_converting_assignment<const T, const T>();
|
||||
test_converting_assignment<T, const T>();
|
||||
}
|
||||
|
||||
int main()
|
||||
|
||||
Reference in new issue
Block a user