Disabled assignment and construction from rvalue references in optional<const T&>

This commit is contained in:
Andrzej Krzemienski
2014-04-28 15:48:55 +02:00
parent 0e61751fab
commit 3816143646
6 changed files with 133 additions and 12 deletions

View File

@ -32,5 +32,9 @@ import testing ;
[ compile-fail optional_test_inplace_fail2.cpp ]
[ compile-fail optional_test_fail_copying_a_moveable_type.cpp ]
[ compile-fail optional_test_fail_optional_rvalue_ref.cpp ]
[ compile-fail optional_test_ref_fail_init_from_Trefref.cpp ]
[ compile-fail optional_test_ref_fail_init_from_Urefref.cpp ]
[ compile-fail optional_test_ref_fail_assign_from_Trefref.cpp ]
[ compile-fail optional_test_ref_fail_assign_from_Urefref.cpp ]
;
}