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 &);
More 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
- Why do constant expressions have an exclusion for undefined behavior?
- SFINAE working in return type but not as template parameter
- 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 should I avoid std::enable_if in function signatures
- Detecting constexpr with SFINAE
- Do I really need to implement user-provided constructor for const objects?
- What is decltype with two arguments?
- Template specialization and enable_if problems [duplicate]
- SFINAE works differently in cases of type and non-type template parameters
- Select class constructor using enable_if
- Is a `=default` move constructor equivalent to a member-wise move constructor?
- Why is the std::initializer_list constructor preferred when using a braced initializer list?
- Forwarding all constructors in C++0x
- Has the new C++11 member initialization feature at declaration made initialization lists obsolete?
- Different ways of initializing an object in c++
- C++11 anonymous union with non-trivial members
- Conflict between copy constructor and forwarding constructor
- Why the initializer of std::function has to be CopyConstructible?
- Default member values best practice
- Using C++ base class constructors?
- using SFINAE for template class specialisation
- Assert that code does NOT compile
- Detect operator support with decltype/SFINAE
- Is substitution performed on a variadic parameter pack type if the pack is empty?
- “What happened to my SFINAE” redux: conditional template class members?