Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
read_write_lock_accError(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] |