You asked for papercuts. Here's one I found:
In the ogre class "Archive" this member:
virtual void remove(const String& filename) const
Is marked const.
Removing a file from an archive can hardly happen without changing the archive.
You can cast away the const-ness but it's a pain.
papercut: Archive::remove() is const
-
- Goblin
- Posts: 202
- Joined: Sun Feb 25, 2007 1:45 am
- Location: USA
- x 6
- Contact:
papercut: Archive::remove() is const
---A dream doesn't become reality through magic; it takes sweat, determination and hard work.