Skip to content

Commit

Permalink
operator= now uses std::decay
Browse files Browse the repository at this point in the history
  • Loading branch information
akrzemi1 committed Nov 20, 2015
1 parent 6fb25d7 commit e16594e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ class optional : private OptionalBase<T>
auto operator=(U&& v)
-> typename enable_if
<
is_same<typename remove_reference<U>::type, T>::value,
is_same<typename decay<U>::type, T>::value,
optional&
>::type
{
Expand Down

0 comments on commit e16594e

Please sign in to comment.