C++ Telltales part 8:
Same Name for a Function And a Class
This is eighth part of my C++ Telltales series where I share some tips and tricks to work with C++. Feel free to check out also other parts of the series here!
Having same name for a function and for a class or a struct in the same namespace might not be something you encounter every day. But sometimes you are forced to do some things that are named similarly (maybe because of bad requirements coming from the customer). C++ keywords class and struct are not only used to declare things — they can be used…