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

read_write_lock_acc

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1.06 sec, absolute service time: 1,09 sec 
edit mode |  history  | discussion
Error(s):
source_file.cpp: In function ‘int main(int, char**)’:
source_file.cpp:60:14: error: ‘AB’ is an inaccessible base of ‘XY<double>’
     AB& ab = xy;
              ^
source_file.cpp:63:9: error: redeclaration of ‘AB& ab’
     AB& ab = xy.data();
         ^
source_file.cpp:60:9: note: ‘AB& ab’ previously declared here
     AB& ab = xy;
         ^
source_file.cpp:60:9: warning: unused variable ‘ab’ [-Wunused-variable]