06 2009 档案

摘要:今天上百度知道,偶然看到一个函数模板的限制。1、浮点数不能作为 非类型模板参数 如:template <float /* or double */> class TT;2、自定义类不能作为模板参数,这些自定义类也是 非类型模板参数。// 6-14-2009#include <iostream>using namespace std;// #define FLOAT// #d... 阅读全文
posted @ 2009-06-14 23:48 夜雨無聲 阅读(2280) 评论(0) 推荐(1) 编辑