mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Base classes used polymorphically whose child classes have data members or
destructors must themselves have virtual destructors or Bad Things(TM) happen.
This commit is contained in:
@@ -9,6 +9,8 @@ class Data
|
||||
public:
|
||||
typedef boost::shared_ptr<Data> pointer;
|
||||
|
||||
virtual ~Data(){ ; }
|
||||
|
||||
virtual bool isInt32(){ return(false); }
|
||||
virtual bool isFloat(){ return(false); }
|
||||
virtual bool isUint160(){ return(false); }
|
||||
|
||||
Reference in New Issue
Block a user