class Derived:public Base
{
public:
Derived(int i=0,double j=0.0,string s =""):Base(i,j),str(s){}
…………
……^
…………
int _tmain(int argc, _TCHAR* argv[])
{
Derived de(1,1.1,"fuck");
^^^
^^^
全部重新生成: 成功 1 个,失败 0 个,跳过 0 个 ==========
当Derived 的string形参不为引用时可以编译通过,当为引用时出错 “error C2440: “default argument”: 无法从“const char [1]”转换为“std::string &”
但当为引用时加const 就能通过,
不解,正在求解………………