Thursday, November 18, 2010

References to Arrays

For function template parameters, references to arrays are not decayed.

Many times this shows up, when trying to pass a string literal to a templated function.

No comments:

Post a Comment