diff --git a/ntcore/src/main/native/include/networktables/NetworkTable.h b/ntcore/src/main/native/include/networktables/NetworkTable.h index 1d93c8c738..1008859171 100644 --- a/ntcore/src/main/native/include/networktables/NetworkTable.h +++ b/ntcore/src/main/native/include/networktables/NetworkTable.h @@ -246,24 +246,27 @@ class NetworkTable final { * Gets a raw struct serialized value topic. * * @param name topic name + * @param info optional struct type info * @return Topic */ template requires wpi::StructSerializable - StructTopic GetStructTopic(std::string_view name) const { - return StructTopic{GetTopic(name)}; + StructTopic GetStructTopic(std::string_view name, I... info) const { + return StructTopic{GetTopic(name), std::move(info)...}; } /** * Gets a raw struct serialized array topic. * * @param name topic name + * @param info optional struct type info * @return Topic */ template requires wpi::StructSerializable - StructArrayTopic GetStructArrayTopic(std::string_view name) const { - return StructArrayTopic{GetTopic(name)}; + StructArrayTopic GetStructArrayTopic(std::string_view name, + I... info) const { + return StructArrayTopic{GetTopic(name), std::move(info)...}; } /**