Partially added move semantics (tests are still failing)

This commit is contained in:
Andrzej Krzemienski
2014-04-22 22:36:19 +02:00
parent 587ef8e988
commit a26d11be87
4 changed files with 404 additions and 42 deletions

View File

@@ -11,15 +11,21 @@
//
// Revisions:
// 10 May 2008 (added swap related forward declaration) Niels Dekker
//
// 17 Apr 2014 (added noexcept) Andrzej Krzemienski
//
#ifndef BOOST_OPTIONAL_OPTIONAL_FWD_FLC_19NOV2002_HPP
#define BOOST_OPTIONAL_OPTIONAL_FWD_FLC_19NOV2002_HPP
#include <boost/config.hpp>
#include <boost/type_traits/is_nothrow_move_assignable.hpp>
#include <boost/type_traits/is_nothrow_move_constructible.hpp>
namespace boost {
template<class T> class optional ;
template<class T> void swap ( optional<T>& , optional<T>& ) ;
template<class T> void swap ( optional<T>& , optional<T>& )
BOOST_NOEXCEPT_IF(::boost::is_nothrow_move_constructible<T>::value && ::boost::is_nothrow_move_assignable<T>::value);
template<class T> struct optional_swap_should_use_default_constructor ;