how to avoid duplicate class in c++ without namespace -


just guess situation main.cpp should include both 'a.h' , 'b.h', , class 'c' defined in both a.h , b.h member functions's names same differnt, version of class 'c' different. but, main.cpp require both version of class 'c'.

then how avoid errors issue??

don't try define 2 different classes same (fully qualified) name; that's not allowed. rename 1 of them, or put in different namespace.


Comments

Popular posts from this blog

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -