Правка условий
This commit is contained in:
parent
e97025a81e
commit
ec720ff8f4
@ -19,22 +19,22 @@ using underlying_type_t = typename std::underlying_type< T >::type;
|
|||||||
template< typename T, typename ... Args >
|
template< typename T, typename ... Args >
|
||||||
std::unique_ptr< T > make_unique( Args&&... args )
|
std::unique_ptr< T > make_unique( Args&&... args )
|
||||||
{
|
{
|
||||||
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
|
return( std::unique_ptr< T >( new T( std::forward< Args >( args )... ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace std
|
} // namespace std
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ( __cplusplus >= 201103L ) && ( __cplusplus < 201702L )
|
#if ( ( __cplusplus >= 201103L ) && ( __cplusplus < 201402L ) ) || \
|
||||||
|
( ( __cplusplus >= 201402L ) && ( __cplusplus < 201702L ) && defined( __STRICT_ANSI__ ) )
|
||||||
|
|
||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
|
||||||
#if defined( __STRICT_ANSI__ ) || ( __e2k__ )
|
|
||||||
template< typename ... Ts > struct make_void { typedef void type; };
|
template< typename ... Ts > struct make_void { typedef void type; };
|
||||||
template< typename ... Ts > using void_t = typename make_void< Ts... >::type;
|
template< typename ... Ts > using void_t = typename make_void< Ts... >::type;
|
||||||
#endif
|
|
||||||
|
|
||||||
} // namespace std
|
} // namespace std
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user