mirror of
https://github.com/boostorg/optional.git
synced 2025-07-30 04:27:19 +02:00
fix swap tests
This commit is contained in:
@ -15,7 +15,6 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "boost/optional/optional.hpp"
|
#include "boost/optional/optional.hpp"
|
||||||
#include "boost/utility/in_place_factory.hpp"
|
|
||||||
|
|
||||||
#ifdef BOOST_BORLANDC
|
#ifdef BOOST_BORLANDC
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
@ -189,9 +188,9 @@ namespace optional_swap_test
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if( !hasX )
|
if( !hasX )
|
||||||
x = boost::in_place('\0');
|
x.emplace('\0');
|
||||||
else if ( !hasY )
|
else if ( !hasY )
|
||||||
y = boost::in_place('\0');
|
y.emplace('\0');
|
||||||
|
|
||||||
optional_swap_test::swap(*x,*y);
|
optional_swap_test::swap(*x,*y);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user