diff --git a/doc/move.qbk b/doc/move.qbk index 762a6c9..dbd7d11 100644 --- a/doc/move.qbk +++ b/doc/move.qbk @@ -761,6 +761,7 @@ Many thanks to all boosters that have tested, reviewed and improved the library. * Added `move_if_noexcept` utility. Thanks to Antony Polukhin for the implementation. * Fixed bugs: * [@https://svn.boost.org/trac/boost/ticket/9785 Trac #9785: ['"Compiler warning with intel icc in boost/move/core.hpp"]], + * [@https://svn.boost.org/trac/boost/ticket/10460 Trac #10460: ['"Compiler error due to looser throw specifier"]], * [@https://github.com/boostorg/move/pull/3 Git Pull #3: ['"Don't delete copy constructor when rvalue references are disabled"]], [endsect] diff --git a/example/doc_clone_ptr.cpp b/example/doc_clone_ptr.cpp index f1b72b0..8842e38 100644 --- a/example/doc_clone_ptr.cpp +++ b/example/doc_clone_ptr.cpp @@ -19,15 +19,15 @@ class Base public: Base(){} - Base(const Base &x) {/**/} // Copy ctor + Base(const Base &/*x*/) {/**/} // Copy ctor - Base(BOOST_RV_REF(Base) x) {/**/} // Move ctor + Base(BOOST_RV_REF(Base) /*x*/) {/**/} // Move ctor - Base& operator=(BOOST_RV_REF(Base) x) - {/**/ return *this;} // Move assign + Base& operator=(BOOST_RV_REF(Base) /*x*/) + {/**/ return *this;} // Move assign - Base& operator=(BOOST_COPY_ASSIGN_REF(Base) x) - {/**/ return *this;} // Copy assign + Base& operator=(BOOST_COPY_ASSIGN_REF(Base) /*x*/) + {/**/ return *this;} // Copy assign virtual Base *clone() const { return new Base(*this); } diff --git a/include/boost/move/core.hpp b/include/boost/move/core.hpp index e2b13cd..da63812 100644 --- a/include/boost/move/core.hpp +++ b/include/boost/move/core.hpp @@ -71,7 +71,7 @@ >::type { rv(); - ~rv(); + ~rv() throw(); rv(rv const&); void operator=(rv const&); } BOOST_MOVE_ATTRIBUTE_MAY_ALIAS;