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

Demo

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.73 sec, absolute service time: 0,85 sec 
edit mode |  history
Error(s):
source_file.cpp:35:7: error: use of overloaded operator '=' is ambiguous (with operand types 'base' and 'typename remove_reference<base &>::type' (aka 'base'))
    a = std::move(b);
    ~ ^ ~~~~~~~~~~~~
source_file.cpp:18:11: note: candidate function
    base& operator=(base other) {
          ^
source_file.cpp:23:11: note: candidate function
    base& operator=(base&& other) {
          ^
1 error generated.

        

    
                
λ
.NET NoSQL database for rapid development