Remove use of boost::noncopyable

Bug #1332627 reported by SirVer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Low
Unassigned

Bug Description

Now that we are using c++11, the use of boost::noncopyable is no longer needed as c++ has support for this in their language. boost::noncopyable is not ideal, because it needs inheritance to do it's work and this can get dicy when a second class should be inherited (i.e. for all building classes).

- A macro like googles disallow_copy_and_assign should be defined and used everywhere instead (http://stackoverflow.com/questions/1454407/macros-to-disallow-class-copy-and-assignment-google-vs-qt).
- A codecheck rule should barf on the inclusion of boost noncopyable.hpp and using noncopyable in code.

Related branches

GunChleoc (gunchleoc)
Changed in widelands:
assignee: nobody → GunChleoc (gunchleoc)
status: Confirmed → In Progress
Revision history for this message
GunChleoc (gunchleoc) wrote :

I have taken care of most of them, however I had to revert quite a few because the compiler didn't like them. Somebody who knows what they're doing will have to check these out.

Also, the new codecheck rule should be verified by someone.

Otherwise, it's ready for merging I think.

Revision history for this message
SirVer (sirver) wrote :

I proposed the bug for merging and added some comments to the merge proposal. Thanks for doing this cleanup!

SirVer (sirver)
Changed in widelands:
status: In Progress → Fix Committed
GunChleoc (gunchleoc)
Changed in widelands:
assignee: GunChleoc (gunchleoc) → nobody
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.