From 6b0a8abeca289467a9b9f40483e834aa1ff57e20 Mon Sep 17 00:00:00 2001 From: Juan Lanuza Date: Tue, 5 Feb 2019 15:16:26 -0500 Subject: [PATCH 1/3] Now port value types can be specified, before it only allowed int --- include/boost/simulation/convenience.hpp | 2 +- include/boost/simulation/pdevs/driver.hpp | 20 ++++++++++---------- include/boost/simulation/pdevs/erunner.hpp | 18 +++++++++--------- include/boost/simulation/pdevs/port.hpp | 8 ++++---- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/include/boost/simulation/convenience.hpp b/include/boost/simulation/convenience.hpp index 3a1efc2..57da725 100644 --- a/include/boost/simulation/convenience.hpp +++ b/include/boost/simulation/convenience.hpp @@ -47,7 +47,7 @@ std::shared_ptr -std::shared_ptr> make_port_ptr(Args... args) noexcept { +std::shared_ptr> make_port_ptr(Args... args) noexcept { return std::make_shared(std::forward(args)...); } diff --git a/include/boost/simulation/pdevs/driver.hpp b/include/boost/simulation/pdevs/driver.hpp index 3d1e088..b2e8c0e 100644 --- a/include/boost/simulation/pdevs/driver.hpp +++ b/include/boost/simulation/pdevs/driver.hpp @@ -39,7 +39,7 @@ namespace pdevs { /** * @brief The coupled class represents PDEVS coupled models */ -template +template class driver { protected: @@ -49,8 +49,8 @@ class driver int numberInputPorts; std::vector