You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.