@@ -357,28 +357,28 @@ std::pair<std::string, PortInfo> CreatePort(PortDirection direction,
357357}
358358
359359// ----------
360- template <typename T = void > [[nodiscard]]
360+ template <typename T = PortInfo::AnyTypeAllowed > [[nodiscard]]
361361inline std::pair<std::string, PortInfo> InputPort (StringView name,
362362 StringView description = {})
363363{
364364 return CreatePort<T>(PortDirection::INPUT, name, description);
365365}
366366
367- template <typename T = void > [[nodiscard]]
367+ template <typename T = PortInfo::AnyTypeAllowed > [[nodiscard]]
368368inline std::pair<std::string, PortInfo> OutputPort (StringView name,
369369 StringView description = {})
370370{
371371 return CreatePort<T>(PortDirection::OUTPUT, name, description);
372372}
373373
374- template <typename T = void > [[nodiscard]]
374+ template <typename T = PortInfo::AnyTypeAllowed > [[nodiscard]]
375375inline std::pair<std::string, PortInfo> BidirectionalPort (StringView name,
376376 StringView description = {})
377377{
378378 return CreatePort<T>(PortDirection::INOUT, name, description);
379379}
380380// ----------
381- template <typename T = void > [[nodiscard]]
381+ template <typename T = PortInfo::AnyTypeAllowed > [[nodiscard]]
382382inline std::pair<std::string, PortInfo> InputPort (StringView name, const T& default_value,
383383 StringView description)
384384{
@@ -387,7 +387,7 @@ inline std::pair<std::string, PortInfo> InputPort(StringView name, const T& defa
387387 return out;
388388}
389389
390- template <typename T = void > [[nodiscard]]
390+ template <typename T = PortInfo::AnyTypeAllowed > [[nodiscard]]
391391inline std::pair<std::string, PortInfo> BidirectionalPort (StringView name,
392392 const T& default_value,
393393 StringView description)
0 commit comments