About 10 years ago I posted a question to Stack Overflow. Recently, it was marked as a duplicate.
The problem is that the question is not a duplicate of that other question. I'm being instructed to change my question to highlight why it is not a duplicate. The question is very straightforward as it stands and was answered well. The other question is related, but it requires a different approach.
My problem is that both questions add value to the community. Changing my original question to highlight the difference will add a clutter for it. There should be a way to explain the difference without modifying the question itself.
Just to explain it here. Both questions are asking how to exclude some variants of the function overload in C++. The other question is asking for a straightforward usage for std::enable_if. My question is a specialised case of the class constructor. And as you can see, no answer to my question is using std::enable_if
as a simple template parameter, which is the solution on the other question.
std::enable_if
to conditionally (only for some times) compile (define, in such a way that the compiler recognizes it) the constructor .The target is titled: "std::enable_if to conditionally compile a member function", and that seems to accurately describe what the question is about. Just to make sure: you understand that constructors are considered a kind of member function in the Standard? So then how is it not a duplicate?