Skip to content

Commit f9fdf42

Browse files
committed
fix for the previous partial commit
1 parent 7541076 commit f9fdf42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/boost/optional/optional.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ class optional
940940

941941
// Creates a deep copy of another optional<T>
942942
// Can throw if T::T(T const&) does
943-
#ifndef BOOST_OPTIONAL_DETAIL_NO_DEFAULTED_FUNCTIONS
943+
#ifndef BOOST_OPTIONAL_DETAIL_NO_DEFAULTED_MOVE_FUNCTIONS
944944
optional ( optional const& ) = default;
945945
#else
946946
optional ( optional const& rhs ) : base( static_cast<base const&>(rhs) ) {}
@@ -950,7 +950,7 @@ class optional
950950
// Creates a deep move of another optional<T>
951951
// Can throw if T::T(T&&) does
952952

953-
#ifndef BOOST_OPTIONAL_DETAIL_NO_DEFAULTED_FUNCTIONS
953+
#ifndef BOOST_OPTIONAL_DETAIL_NO_DEFAULTED_MOVE_FUNCTIONS
954954
optional ( optional && rhs ) = default;
955955
#else
956956
optional ( optional && rhs )
@@ -1015,7 +1015,7 @@ class optional
10151015
// Assigns from another optional<T> (deep-copies the rhs value)
10161016
// Basic Guarantee: If T::T( T const& ) throws, this is left UNINITIALIZED
10171017
// (NOTE: On BCB, this operator is not actually called and left is left UNMODIFIED in case of a throw)
1018-
#ifndef BOOST_OPTIONAL_DETAIL_NO_DEFAULTED_FUNCTIONS
1018+
#ifndef BOOST_OPTIONAL_DETAIL_NO_DEFAULTED_MOVE_FUNCTIONS
10191019
optional& operator= ( optional const& rhs ) = default;
10201020
#else
10211021
optional& operator= ( optional const& rhs )
@@ -1027,7 +1027,7 @@ class optional
10271027

10281028
#ifndef BOOST_OPTIONAL_DETAIL_NO_RVALUE_REFERENCES
10291029
// Assigns from another optional<T> (deep-moves the rhs value)
1030-
#ifndef BOOST_OPTIONAL_DETAIL_NO_DEFAULTED_FUNCTIONS
1030+
#ifndef BOOST_OPTIONAL_DETAIL_NO_DEFAULTED_MOVE_FUNCTIONS
10311031
optional& operator= ( optional && ) = default;
10321032
#else
10331033
optional& operator= ( optional && rhs )

0 commit comments

Comments
 (0)