Skip to content
Snippets Groups Projects
Commit 734e0a7a authored by Benjamin Cumming's avatar Benjamin Cumming
Browse files

Comment out faulty SFINAE parameter in `util::optional`

parent 81bb9c1e
No related branches found
No related tags found
No related merge requests found
......@@ -332,9 +332,12 @@ struct optional<X&>: detail::optional_base<X&> {
template <typename T>
optional(optional<T&>& ot): base(ot.set,ot.ref()) {}
/*
template <
typename Y,
typename = typename std::enable_if<!detail::is_optional<Y>::value>::type>
*/
template <typename Y>
optional& operator=(Y& y) {
set = true;
ref() = y;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment