Drop "Dummy" from enable_if in templates (#572)

Looks like this was here because of MSVC 2013 compat which is not
supported anymore
This commit is contained in:
Tiago authored and Neil MacIntosh committed 2017-11-03 16:18:59 -07:00
1 parent 9a7897915e
commit d10ebc6555
3 files changed
+36 -36

No files matched your search

+2 -2
View File
@@ -71,13 +71,13 @@ class not_null
public:
static_assert(std::is_assignable<T&, std::nullptr_t>::value, "T cannot be assigned nullptr.");
template <typename U, typename Dummy = std::enable_if_t<std::is_convertible<U, T>::value>>
template <typename U, typename = std::enable_if_t<std::is_convertible<U, T>::value>>
constexpr not_null(U&& u) : ptr_(std::forward<U>(u))
{
Expects(ptr_ != nullptr);
}
template <typename U, typename Dummy = std::enable_if_t<std::is_convertible<U, T>::value>>
template <typename U, typename = std::enable_if_t<std::is_convertible<U, T>::value>>
constexpr not_null(const not_null<U>& other) : not_null(other.get())
{
}