use 'class' or 'typename' for template parameter
They are equivalent after all.
an error:
cannot convert 'this' pointer from 'const ScopedArray' to 'ScopedArray &
how to solve it:
make the function in class 'const'
an error
error C2440: 'initializing' : cannot convert from 'const ScopedArray' to 'bool'
conversion operator
chapter11 p548
const, if you have const object, your operator should also be const
No comments:
Post a Comment