Skip to content

{ Monthly Archives } July 2010

Deleting From A Collection in STL

Deleting from a collection is hard in STL. Or rather, it’s subtle. Which is roughly equivalent to hard. Jim Beveridge talks about STL erase in his latest blog post and that inspired me to spend some time messing around with STL containers last night. You can remove all even numbers from a set with Jim’s [...]

Cygwin setup.exe not a valid win32 application

I ran into this error – “setup.exe is not a valid win32 application” the other day while I was trying to upgrade cygwin (1.5 -> 1.7) on an old laptop. Underlying problem was that I was upgrading under a different account than had been used to originally install cygwin. Switching to that account and running [...]