Deleted user

Results 123344 comments of Deleted user

```cpp class Customer{ string name; public: Customer::Customer(const Customer& rhs): name(rhs.name){} Customer& Customer::operator=(const Customer& rhs){ name = rhs.name; // copy rhs's data return *this; // see Item 10 } }; ```...

对init没有好感。。

实测,MSVC下打开warning as error ,只提示 ``` Warning C4514 'std::codecvt::unshift': unreferenced inline function has been removed ``` 话说,设置warning as error 不能捕获所有错误吧。那该怎么设置呢? clang的报错就很友好. ```bash clang++ sc.cpp sc.cpp:7:3: warning: call to pure virtual member...

注意到这个: ```bash test.obj : error LNK2019: unresolved external symbol "public: virtual void __cdecl Transaction::logTransaction(void)const " (?logTransaction@Transaction@@UEBAXXZ) referenced in function "public: __cdecl Transaction::Transaction(void)" (??0Transaction@@QEAA@XZ) test.exe : fatal error LNK1120: 1 unresolved...

note: 'Person &Person::operator =(const Person &)': function was implicitly deleted because 'Person' has a data member 'Person::name' of reference type

```cpp 1>c:\users\enyala\source\repos\about_placement_new\about_placement_new\about_placement_new.cpp(11): note: 'Person &Person::operator =(const Person &)': function was implicitly deleted because 'Person' has a data member 'Person::name' of reference type ``` 阅读标准时间=-=

问个蠢问题,根据作者的代码加了实现 ``` class B { public: virtual void f() const; int a; }; void B::f() const { cout

看到了 ```cpp Warning C4264 'void B::f(void) const': no override available for virtual member function from base 'B'; function is hidden ```

GNU Readline Library 这个没听说过唉,多谢博主分享,学到很多新知识。