Skip to content

Commit

Permalink
Handle presence of various C++11 type traits, take 3 (#58, thanks to @…
Browse files Browse the repository at this point in the history
…trapexit)

Fix std11::is_assignable<T,U>: add second template argument
  • Loading branch information
martinmoene committed Sep 8, 2020
1 parent dd5fc24 commit adfbf6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/nonstd/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ typedef bool_constant< false > false_type;
#if optional_HAVE( IS_ASSIGNABLE )
using std::is_assignable;
#else
template< class T > struct is_assignable : std11::true_type{};
template< class T, class U > struct is_assignable : std11::true_type{};
#endif

#if optional_HAVE( IS_MOVE_CONSTRUCTIBLE )
Expand Down

0 comments on commit adfbf6e

Please sign in to comment.