OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000421OMNeT++command line toolspublic2011-10-24 07:372011-10-24 07:37
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
PlatformOSOS Version
Product Version4.2rc1 
Target VersionFixed in Version 
Summary0000421: Message const& getter method is not good c++
DescriptionThe generation of messages 'const x& get...() const' getter methods ist not good c++, example:

    virtual Signal& getSignal();
    virtual const Signal& getSignal() const {return const_cast<AirFrame*>(this)->getSignal();}

instead of using const_cast it should simple return the const reference to the member variable signal_var.
I would expected following result:

    virtual const Signal& getSignal() const {return signal_var;}
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-10-24 07:37 michael New Issue

Copyright © 2000 - 2022 MantisBT Team
Powered by Mantis Bugtracker