I have a base class and it has virtual functions. The problem is that the database is allowed to be instantiated, but this means that all of its functions need to be defined. This causes the compiler to warn me of unused parameters. What can I do to get rid of these warnings correctly without creating pure virtual functions and making it an abstract class?
Example:
class Foo {
public:
virtual void bar(int x) {}
}
thank
source
share