Page 1 of 1

papercut: Archive::remove() is const

Posted: Wed Mar 06, 2013 8:37 pm
by uzik
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.