From 62ffbc97ba64b3f970ad1ae45e09dc0ea390c5b3 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 --- Subtrees/beast/modules/beast_core/system/PlatformDefs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Subtrees/beast/modules/beast_core/system/PlatformDefs.h b/Subtrees/beast/modules/beast_core/system/PlatformDefs.h index 11ac689f32..e0f7284160 100644 --- a/Subtrees/beast/modules/beast_core/system/PlatformDefs.h +++ b/Subtrees/beast/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: