From 10958459a3dc8bf2a46cc2cc687bc3b162d0c811 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 6 Sep 2013 09:31:44 -0700 Subject: [PATCH] Add BEAST_MOVE_* macros --- modules/beast_core/system/PlatformDefs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/beast_core/system/PlatformDefs.h b/modules/beast_core/system/PlatformDefs.h index 11ac689f3..e0f728416 100644 --- a/modules/beast_core/system/PlatformDefs.h +++ b/modules/beast_core/system/PlatformDefs.h @@ -283,6 +283,14 @@ template <> struct BeastStaticAssert { static void dummy() {} }; # define BEAST_COMPILER_SUPPORTS_OVERRIDE_AND_FINAL 1 #endif +#if BEAST_COMPILER_SUPPORTS_MOVE_SEMANTICS +# define BEAST_MOVE_ARG(type) type&& +# define BEAST_MOVE_CAST(type) static_cast +#else +# define BEAST_MOVE_ARG(type) type +# define BEAST_MOVE_CAST(type) type +#endif + //------------------------------------------------------------------------------ // Declare some fake versions of nullptr and noexcept, for older compilers: