修正了enable_if中Universal Reference的例子中的bug。

This commit is contained in:
wuye9036 2016-06-21 16:56:43 -07:00 committed by GitHub
parent d116e6c5ed
commit c3c4897329

View File

@ -2519,7 +2519,7 @@ template <typename ArgT>
void foo(
ArgT&& a,
typename std::enabled_if<
is_same<ArgT, float>::value
is_same<std::decay_t<ArgT>, float>::value
>::type* = nullptr
);
```