Bug 175 - "const DataRate &" is just pointless obfuscation
"const DataRate &" is just pointless obfuscation
Status: RESOLVED INVALID
Product: ns-3
Classification: Unclassified
Component: core
pre-release
All All
: P3 minor
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-20 13:26 UTC by Gustavo J. A. M. Carneiro
Modified: 2008-07-01 13:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo J. A. M. Carneiro 2008-04-20 13:26:51 UTC
PointToPointNetDevice (Ptr<Node> node,
                         const DataRate& rate = g_defaultRate.GetValue());

This breaks the python bindings.  I am going to support it, but I think it's silly to pass DataRate by reference, especially coupled with having a default value...
Comment 1 Gustavo J. A. M. Carneiro 2008-04-20 13:54:06 UTC
Oops, never mind, working on wrong tree! :P