Detect C++11 features automatically

This commit is contained in:
Tsuda kageyu
2013-04-18 03:23:12 +09:00
parent 10b4bd61e2
commit 4fc2a3bdd8
28 changed files with 214 additions and 125 deletions

View File

@ -129,7 +129,7 @@ ASF::Attribute &ASF::Attribute::operator=(const ASF::Attribute &other)
return *this;
}
#ifdef TAGLIB_USE_CXX11
#ifdef SUPPORT_MOVE_SEMANTICS
ASF::Attribute &ASF::Attribute::operator=(ASF::Attribute &&other)
{

View File

@ -115,12 +115,12 @@ namespace TagLib
*/
ASF::Attribute &operator=(const Attribute &other);
#ifdef TAGLIB_USE_CXX11
#ifdef SUPPORT_MOVE_SEMANTICS
/*!
* Moves the contents of \a other into this item.
*
* \note Not available unless TAGLIB_USE_CXX11 macro is defined.
* \note Not available unless SUPPORT_MOVE_SEMANTICS macro is defined.
*/
ASF::Attribute &operator=(Attribute &&other);

View File

@ -60,7 +60,7 @@ ASF::Picture::Picture(const Picture& other)
{
}
#ifdef TAGLIB_USE_CXX11
#ifdef SUPPORT_MOVE_SEMANTICS
ASF::Picture::Picture(Picture &&other)
: d(std::move(other.d))
@ -131,7 +131,7 @@ ASF::Picture& ASF::Picture::operator=(const ASF::Picture& other)
return *this;
}
#ifdef TAGLIB_USE_CXX11
#ifdef SUPPORT_MOVE_SEMANTICS
ASF::Picture& ASF::Picture::operator=(ASF::Picture &&other)
{

View File

@ -107,12 +107,12 @@ namespace TagLib
*/
Picture(const Picture& other);
#ifdef TAGLIB_USE_CXX11
#ifdef SUPPORT_MOVE_SEMANTICS
/*!
* Constructs an picture equivalent to \a other.
*
* \note Not available unless TAGLIB_USE_CXX11 macro is defined.
* \note Not available unless SUPPORT_MOVE_SEMANTICS macro is defined.
*/
Picture(Picture &&other);
@ -128,12 +128,12 @@ namespace TagLib
*/
Picture& operator=(const Picture& other);
#ifdef TAGLIB_USE_CXX11
#ifdef SUPPORT_MOVE_SEMANTICS
/*!
* Moves the contents of \a other into this picture.
*
* \note Not available unless TAGLIB_USE_CXX11 macro is defined.
* \note Not available unless SUPPORT_MOVE_SEMANTICS macro is defined.
*/
Picture& operator=(Picture &&other);