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

gcc error

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.14 sec, absolute service time: 0,21 sec 
edit mode |  history
Error(s):
source_file.cpp: In function ‘Hugo f()’:
source_file.cpp:22:22: error: no matching function for call to ‘Hugo::Hugo(const Hugo&)’
     return HugoCopy(h);
                      ^
source_file.cpp:5:5: note: candidate: Hugo::Hugo()
     Hugo() {  }  
     ^
source_file.cpp:5:5: note:   candidate expects 0 arguments, 1 provided
source_file.cpp:13:5: note:   after user-defined conversion: HugoCopy::operator const Hugo&()
     operator Hugo const&() { return hugo; }
     ^