分类: C/C++
2008-09-18 02:14:04
|
generalized copy constructors.
implicit type conversion functions are never considered during template argument deduction
As a declared function (not a function template), compilers can use implicit conversion functions (such as Rational's non-explicit constructor) when calling it
Inside a class template, the name of the template can be used as shorthand for the template and its parameters, so inside Rational
The only way to declare a non-member function inside a class is to make it a friend.