papercut: Archive::remove() is const
Posted: Wed Mar 06, 2013 8:37 pm
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.
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.