Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Deleted special operations are propagated to derived class

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 3.17 sec, absolute service time: 3,28 sec 
edit mode |  history  | discussion
Error(s):
1020489124/source.cpp:36:13: error: call to implicitly-deleted copy constructor of 'Derived'
    Derived bb = aa;
            ^    ~~
1020489124/source.cpp:18:17: note: copy constructor of 'Derived' is implicitly deleted because base class 'IBase' has a deleted copy constructor
class Derived : public IBase
                ^
1020489124/source.cpp:7:3: note: 'IBase' has been explicitly marked deleted here
                IBase(const IBase& other) = delete;
                ^
1020489124/source.cpp:39:39: error: use of undeclared identifier 'iBase'
    std::cout << "aa m_property: " << iBase.GetProperty() << "\n";
                                      ^
1020489124/source.cpp:42:39: error: use of undeclared identifier 'aBase'
    std::cout << "bb m_property: " << aBase.GetProperty() << "\n";
                                      ^
3 errors generated.

        

    
                
λ
.NET NoSQL database for rapid development