mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-06 14:24:09 +00:00
workaround for ICC 15
This commit is contained in:
parent
1cb62e6250
commit
755ebf4311
7 changed files with 41 additions and 7 deletions
26
sprout/workaround/enable_if_with_array.hpp
Normal file
26
sprout/workaround/enable_if_with_array.hpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2015 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_WORKAROUND_ENABLE_IF_WITH_ARRAY_HPP
|
||||
#define SPROUT_WORKAROUND_ENABLE_IF_WITH_ARRAY_HPP
|
||||
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
//
|
||||
// SPROUT_ENABLE_IF_WITH_ARRAY_IN_TEMPLATE_PARAMS
|
||||
// SPROUT_ENABLE_IF_WITH_ARRAY_IN_PARAMS
|
||||
//
|
||||
#ifdef SPROUT_WORKAROUND_NO_DEFAULT_TEMPLATE_PARAMETERS_SFINAE_WITH_ARRAY
|
||||
# define SPROUT_ENABLE_IF_WITH_ARRAY_IN_TEMPLATE_PARAMS(EXPR)
|
||||
# define SPROUT_ENABLE_IF_WITH_ARRAY_IN_PARAMS(EXPR) , typename std::enable_if<(EXPR)>::type* = 0
|
||||
#else
|
||||
# define SPROUT_ENABLE_IF_WITH_ARRAY_IN_TEMPLATE_PARAMS(EXPR) , typename = typename std::enable_if<(EXPR)>::type
|
||||
# define SPROUT_SFINAE_WITH_ARRAY_IN_PARAMS(EXPR)
|
||||
#endif
|
||||
|
||||
#endif // #ifndef SPROUT_WORKAROUND_ENABLE_IF_WITH_ARRAY_HPP
|
Loading…
Add table
Add a link
Reference in a new issue