Skip to content

Commit

Permalink
fix swap tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akrzemi1 committed Oct 17, 2024
1 parent 86f3288 commit b8fd0bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/optional_test_swap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
//

#include "boost/optional/optional.hpp"
#include "boost/utility/in_place_factory.hpp"

#ifdef BOOST_BORLANDC
#pragma hdrstop
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit b8fd0bc

Please sign in to comment.