bindings: explicitly instantiate AddValue<double> for Cppyy 3 compatibility
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user