Skip to content

Commit

Permalink
Make any non-empty type not default constructible for always
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Jun 26, 2016
1 parent ddb7f22 commit 70b0d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fit/always.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct always_base
};

template<class T>
struct always_base<T, typename std::enable_if<std::is_arithmetic<T>::value>::type>
struct always_base<T, typename std::enable_if<!FIT_IS_EMPTY(T)>::type>
{
T x;

Expand Down

0 comments on commit 70b0d5b

Please sign in to comment.