The following compiles:
template <int returnCode> int func() {return returnCode;}
int main() {return func<5>();}
Template parameters can include both types and values.
In this case, the template parameter specification include only a value and no types.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment