Bugzilla – Bug 1550
should all GlobalValues be static?
Last modified: 2012-12-12 04:01:50 EST
Am wondering whether we should make these simulator.cc global values into static: GlobalValue g_simTypeImpl = GlobalValue ("SimulatorImplementationType", "The object class to use as the simulator implementation", StringValue ("ns3::DefaultSimulatorImpl"), MakeStringChecker ()); GlobalValue g_schedTypeImpl = GlobalValue ("SchedulerType", "The object class to use as the scheduler implementation", TypeIdValue (MapScheduler::GetTypeId ()), MakeTypeIdChecker ()); or else change the global-value.h documentation: * Instances of this class are expected to be allocated as static * global variables and should be used to store configurable global state.
(In reply to comment #0) > Am wondering whether we should make these simulator.cc global values into > static: I do not mind but, does it matter ? > * Instances of this class are expected to be allocated as static > * global variables and should be used to store configurable global state. Sure.