I'm looking this over to address a problem I have and I have a question. Suppose I've define the is_incrementable as you have in your first example. What I would like to do is something like
template
std::enable_if<
is_incrementable::value // syntax for this?
int
fun(const T & i){
return ++i;
}
I'm expecting this is possible but I don't see it in the documentation. Please explain this to me.
Robert Ramey
I'm looking this over to address a problem I have and I have a question. Suppose I've define the is_incrementable as you have in your first example. What I would like to do is something like
template
std::enable_if<
is_incrementable::value // syntax for this?
int
I'm expecting this is possible but I don't see it in the documentation. Please explain this to me.
Robert Ramey