bindings: explicitly instantiate AddValue<double> for Cppyy 3 compatibility

This commit is contained in:
Gabriel Ferreira
2023-04-01 11:26:52 -03:00
parent 71af533e41
commit 32e7a62a97
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ def main(argv):
cmd.AddValue("backboneNodes", "number of backbone nodes", backboneNodes)
cmd.AddValue("infraNodes", "number of leaf nodes", infraNodes)
cmd.AddValue("lanNodes", "number of LAN nodes", lanNodes)
cmd.AddValue("stopTime", "simulation stop time(seconds)", stopTime)
cmd.AddValue["double"]("stopTime", "simulation stop time(seconds)", stopTime)
#
# The system global variables and the local values added to the argument

View File

@@ -302,7 +302,7 @@ class TestSimulator(unittest.TestCase):
cmd = ns.core.CommandLine(__file__)
cmd.AddValue("Test1", "this is a test option", test1)
cmd.AddValue("Test2", "this is a test option", test2)
cmd.AddValue("Test3", "this is a test option", test3)
cmd.AddValue["double"]("Test3", "this is a test option", test3)
cmd.AddValue("Test4", "this is a test option", test4, BUFFLEN)
cmd.Parse(["python"])