C++: const virtual and virtual

This just bit me in the ass. I thought flagging a method in a class with the ‘const’ keyword was just that: a flag. It’s not. It’s an entirely new function. For example, these two methods have different signatures: class thing {virtual foo();virtual foo() const;}; If you have a child

Read More »

Projects

Categories
Archives