You can add a defaulted type argument to the template:
template <int otherN, typename = typename std::enable_if<otherN >= N>::type>
explicit A(A<otherN> const &);
Related Contents:
- Rule-of-Three becomes Rule-of-Five with C++11? [closed]
- Check if a class has a member function of a given signature
- SFINAE working in return type but not as template parameter
- Why do constant expressions have an exclusion for undefined behavior?
- What exactly is the “immediate context” mentioned in the C++11 Standard for which SFINAE applies?
- What is “Expression SFINAE”?
- What is constructor inheritance?
- Selecting a member function using different enable_if conditions
- Why doesn’t SFINAE (enable_if) work for member functions of a class template?
- Why should I avoid std::enable_if in function signatures
- Detecting constexpr with SFINAE
- What is decltype with two arguments?
- Do I really need to implement user-provided constructor for const objects?
- Template specialization and enable_if problems [duplicate]
- SFINAE works differently in cases of type and non-type template parameters
- Different ways of initializing an object in c++
- Why is the std::initializer_list constructor preferred when using a braced initializer list?
- Forwarding all constructors in C++0x
- Why is list initialization (using curly braces) better than the alternatives?
- initializer_list and move semantics
- C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?
- Range based loop: get item by value or reference to const?
- How to emulate C array initialization “int arr[] = { e1, e2, e3, … }” behaviour with std::array?
- Is it a conforming compiler extension to treat non-constexpr standard library functions as constexpr?
- SFINAE to check for inherited member functions
- How to use base class’s constructors and assignment operator in C++?
- Pointers in c++ after delete
- Initialize parent’s protected members with initialization list (C++)
- C++11 initializer list fails – but only on lists of length 2
- What is the partial ordering procedure in template deduction
- Why is std::function not equality comparable?
- Scope of variables in if statements
- Which headers in the C++ standard library are guaranteed to include another header?
- Outputting Date and Time in C++ using std::chrono
- What is the meaning of “… …” token? i.e. double ellipsis operator on parameter pack
- Which Boost features overlap with C++11?
- smart pointers and arrays
- Does a C++11 range-based for loop condition get evaluated every cycle?
- Constant expression initializer for static class member of type double
- std::to_string – more than instance of overloaded function matches the argument list
- Which std::async implementations use thread pools?
- error: use of deleted function
- Doing a static_assert that a template type is another template
- Why doesn’t emplace_back() use uniform initialization?
- Extending temporary’s lifetime through rvalue data-member works with aggregate, but not with constructor, why?
- cc1plus: error: unrecognized command line option “-std=c++11” with g++
- Move constructor on derived object
- Format specifiers for uint8_t, uint16_t, …?
- Why can’t std::ostream be moved?
- Why was pair range access removed from C++11?