Skip to content

Commit

Permalink
fix(learning_based_vehicle_model): fix clang-diagnostic-delete-abstra…
Browse files Browse the repository at this point in the history
…ct-non-virtual-dtor

Signed-off-by: Y.Hisaki <[email protected]>
  • Loading branch information
yhisaki committed Nov 28, 2024
1 parent c4608ad commit 4833b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
class SubModelInterface
{
public:
virtual ~SubModelInterface() = default;

/**
* @brief set time step of the model
* @param [in] dt time step
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ void InterconnectedModel::addSubmodel(
std::tuple<std::string, std::string, std::string> submodel_desc)
{
const auto [lib_path, param_path, class_name] = submodel_desc;
auto new_model = new SimplePyModel(lib_path, param_path, class_name);
submodels.push_back(std::unique_ptr<SimplePyModel>(new_model));
submodels.emplace_back(std::make_unique<SimplePyModel>(lib_path, param_path, class_name));
}

void InterconnectedModel::initState(std::vector<double> new_state)
Expand Down

0 comments on commit 4833b74

Please sign in to comment.