mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 05:56:28 +00:00
Make trunk compile again without warnings...
...gcc wants virtual destructors for classes with virtual functions
This commit is contained in:
parent
bbd3c9e8b5
commit
b6d9038d7f
@ -594,6 +594,7 @@ namespace {
|
||||
class base_function_creator {
|
||||
public:
|
||||
virtual expression_ptr create_function(const std::vector<expression_ptr>& args) const = 0;
|
||||
virtual ~base_function_creator() {}
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
@ -602,6 +603,7 @@ public:
|
||||
virtual expression_ptr create_function(const std::vector<expression_ptr>& args) const {
|
||||
return expression_ptr(new T(args));
|
||||
}
|
||||
virtual ~function_creator() {}
|
||||
};
|
||||
|
||||
typedef std::map<std::string, base_function_creator*> functions_map;
|
||||
|
Loading…
x
Reference in New Issue
Block a user