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

@ -48,9 +48,9 @@ namespace sprout {
template<typename T>
SPROUT_CONSTEXPR std::size_t
operator()(T&& v)
const SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(sprout::to_hash(sprout::forward<T>(v))))
const SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(sprout::to_hash(SPROUT_FORWARD(T, v))))
{
return sprout::to_hash(sprout::forward<T>(v));
return sprout::to_hash(SPROUT_FORWARD(T, v));
}
};

View file

@ -34,7 +34,7 @@ namespace sprout {
to_hash(T&& v) {
using sprout::hash_value;
using sprout_adl::hash_value;
return hash_value(sprout::forward<T>(v));
return hash_value(SPROUT_FORWARD(T, v));
}
} // namespace sprout