1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add SPROUT_FORWARD - workaround for ICC

This commit is contained in:
bolero-MURAKAMI 2014-02-22 16:32:51 +09:00
parent 7831105add
commit 274122efb2
202 changed files with 750 additions and 741 deletions

View file

@ -25,4 +25,15 @@ namespace sprout {
forward(typename std::remove_reference<T>::type&&) SPROUT_NOEXCEPT SPROUT_DELETED_FUNCTION_DECL
} // namespace sprout
//
// SPROUT_FORWARD
//
#if defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
# define SPROUT_FORWARD(TYPE, VALUE) \
static_cast<decltype(::sprout::forward<TYPE>(VALUE))>(VALUE)
#else
# define SPROUT_FORWARD(TYPE, VALUE) \
::sprout::forward<TYPE>(VALUE)
#endif
#endif // #ifndef SPROUT_UTILITY_FORWARD_HPP