From ec720ff8f42553177f70a7539c344217c3b9672b Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 9 Jul 2020 15:45:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D1=83?= =?UTF-8?q?=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/myx/backports/cpp/helpers.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/myx/backports/cpp/helpers.hpp b/src/myx/backports/cpp/helpers.hpp index 18aa1d6..3f6b1c0 100644 --- a/src/myx/backports/cpp/helpers.hpp +++ b/src/myx/backports/cpp/helpers.hpp @@ -16,25 +16,25 @@ namespace std template< class T > using underlying_type_t = typename std::underlying_type< T >::type; -template -std::unique_ptr make_unique(Args&&... args) +template< typename T, typename ... Args > +std::unique_ptr< T > make_unique( Args&&... args ) { - return std::unique_ptr(new T(std::forward(args)...)); + return( std::unique_ptr< T >( new T( std::forward< Args >( args )... ) ) ); } } // namespace std #endif -#if ( __cplusplus >= 201103L ) && ( __cplusplus < 201702L ) +#if ( ( __cplusplus >= 201103L ) && ( __cplusplus < 201402L ) ) || \ + ( ( __cplusplus >= 201402L ) && ( __cplusplus < 201702L ) && defined( __STRICT_ANSI__ ) ) + namespace std { -#if defined( __STRICT_ANSI__ ) || ( __e2k__ ) template< typename ... Ts > struct make_void { typedef void type; }; template< typename ... Ts > using void_t = typename make_void< Ts... >::type; -#endif } // namespace std