mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Added virtual destructor for ChaiScript_Basic
ChaiScript inherits from ChaiScript_Basic, so this is good practice. I also need to be able to inherit from ChaiScript and dynamic cast, which is impossible without this destructor.
This commit is contained in:
parent
6411aa7498
commit
7cd229cf26
@ -236,6 +236,10 @@ namespace chaiscript {
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
/// \brief Virtual destructor for ChaiScript
|
||||
virtual ~ChaiScript_Basic() = default;
|
||||
|
||||
/// \brief Constructor for ChaiScript
|
||||
/// \param[in] t_lib Standard library to apply to this ChaiScript instance
|
||||
/// \param[in] t_modulepaths Vector of paths to search when attempting to load a binary module
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user