Skip to content

Commit

Permalink
Use value for type trait
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Apr 24, 2016
1 parent c7f32e8 commit 2ad4009
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/fit/decay.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ struct decay_f
template<
class T,
class Result=typename unwrap_reference<typename std::decay<T>::type>::type,
class=typename std::enable_if<(std::is_constructible<Result, T>())>::type
class=typename std::enable_if<(std::is_constructible<Result, T>::value)>::type
>
constexpr typename unwrap_reference<typename std::decay<T>::type>::type
operator()(T&& x) const
constexpr Result operator()(T&& x) const
{
return FIT_FORWARD(T)(x);
}
Expand Down

0 comments on commit 2ad4009

Please sign in to comment.