在gcc 4.0.3上,下面这段代码会产生invalid use of constructor as a template的编译错误
template <typename T>
class handle_t {
inline handle_t(const handle_t& another);
};
template <typename T>
handle_t<T>::handle_t<T>(const handle_t& another) {
}
而在gcc 3.4.6上编译没有问题.这是gcc的一个bug:http://gcc.gnu.org/ml/gcc-bugs/2005-09/msg01381.html