Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
DjWarmonger
authored and
DjWarmonger
committed
Oct 24, 2015
1 parent
641aa13
commit 3c4f7ec
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3c4f7ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make CBonusSystemNode noncopyable?
3c4f7ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just thought about that, but not sure if in every case it will work as intended.
3c4f7ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be just add ":public boost::noncopyable" temporary and let compiler do it job.
3c4f7ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guys, I think we should fix it like this:
Note the amp after
auto
. It has the same effect as with iterator and avoids the unnecessary copying.