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:
Stephen Berry 2021-07-28 09:04:38 -05:00
parent 6411aa7498
commit 7cd229cf26

View File

@ -236,6 +236,10 @@ namespace chaiscript {
} }
public: public:
/// \brief Virtual destructor for ChaiScript
virtual ~ChaiScript_Basic() = default;
/// \brief Constructor for ChaiScript /// \brief Constructor for ChaiScript
/// \param[in] t_lib Standard library to apply to this ChaiScript instance /// \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 /// \param[in] t_modulepaths Vector of paths to search when attempting to load a binary module