remove gcc warnings, thanks to Stephan Beal
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@658 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
a708a57d94
commit
d07f863578
3 changed files with 10 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
|||
struct Base
|
||||
{
|
||||
virtual void foo() = 0;
|
||||
virtual ~Base();
|
||||
};
|
||||
|
||||
bool registerClass(std::string, Base*(*)() );
|
||||
|
|
|
@ -15,9 +15,16 @@
|
|||
#include "foo.h"
|
||||
#include <iostream>
|
||||
|
||||
Base::~Base(){}
|
||||
|
||||
Foo::Foo(){}
|
||||
Boo::Boo(){}
|
||||
|
||||
|
||||
Foo::~Foo(){}
|
||||
Boo::~Boo(){}
|
||||
|
||||
|
||||
void Foo::foo(){std::cout << "Foo::foo() called, this: " << this << "\n"; }
|
||||
void Boo::foo(){std::cout << "Boo::foo() called, this: " << this << "\n"; }
|
||||
|
||||
|
|
|
@ -20,12 +20,14 @@
|
|||
struct Foo : Base
|
||||
{
|
||||
Foo();
|
||||
virtual ~Foo();
|
||||
void foo();
|
||||
};
|
||||
|
||||
struct Boo : Base
|
||||
{
|
||||
Boo();
|
||||
virtual ~Boo();
|
||||
void foo();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue