forked from boostorg/optional
fix swap tests
This commit is contained in:
1 parent
86f3288312
commit
b8fd0bcb5f
1 file changed
+2
-3
@@ -15,7 +15,6 @@
|
||||
//
|
||||
|
||||
#include "boost/optional/optional.hpp"
|
||||
#include "boost/utility/in_place_factory.hpp"
|
||||
|
||||
#ifdef BOOST_BORLANDC
|
||||
#pragma hdrstop
|
||||
@@ -189,9 +188,9 @@ namespace optional_swap_test
|
||||
return;
|
||||
|
||||
if( !hasX )
|
||||
x = boost::in_place('\0');
|
||||
x.emplace('\0');
|
||||
else if ( !hasY )
|
||||
y = boost::in_place('\0');
|
||||
y.emplace('\0');
|
||||
|
||||
optional_swap_test::swap(*x,*y);
|
||||
|
||||
|
||||
Reference in new issue
Block a user