[ADT] Try to appease MSVC by sinking the enable_if from a default

template argument to a default argument to the constructor.

llvm-svn: 207082
This commit is contained in:
Chandler Carruth 2014-04-24 06:16:12 +00:00
parent edfe07fca0
commit 150a5f1dd3
1 changed files with 6 additions and 5 deletions

View File

@ -109,13 +109,14 @@ protected:
iterator_adaptor_base() {}
template <
typename U,
typename = typename std::enable_if<
template <typename U>
explicit iterator_adaptor_base(
U &&u,
typename std::enable_if<
!std::is_base_of<typename std::remove_cv<
typename std::remove_reference<U>::type>::type,
DerivedT>::value>::type>
explicit iterator_adaptor_base(U &&u)
DerivedT>::value,
int>::type = 0)
: I(std::forward<U &&>(u)) {}
public: