File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -339,11 +339,17 @@ CASE( "any: Allows to copy-assign from literal value" )
339
339
CASE ( " any: Allows to copy-assign from value" )
340
340
{
341
341
const int i = 7 ;
342
+ std::string s = " 42" ;
343
+
342
344
any a;
343
345
344
346
a = i;
345
347
346
348
EXPECT ( any_cast<int >( a ) == i );
349
+
350
+ a = s;
351
+
352
+ EXPECT ( any_cast<std::string>( a ) == s );
347
353
}
348
354
349
355
CASE ( " any: Allows to move-assign from value (C++11)" )
@@ -673,18 +679,4 @@ CASE( "tweak header: reads tweak header if supported " "[tweak]" )
673
679
674
680
// Issues:
675
681
676
- CASE ( " any: operator=( T && value ) " " [.issue-9]" )
677
- {
678
- #if any_CPP11_OR_GREATER
679
- any var;
680
- std::string s = " 42" ;
681
-
682
- var = s;
683
-
684
- EXPECT ( any_cast<std::string>( var ) == s );
685
- #else
686
- EXPECT ( !!" any: issue-9 only occurs with C++11 and later (no C++11)" );
687
- #endif
688
- }
689
-
690
682
// end of file
You can’t perform that action at this time.
0 commit comments