In building code with ROOT 5.20/00, VC++ 2005, and BOOST v1.35.0, if I do not include w32pragma.h as a forced include I get compilation errors from ROOT. If I do include it, then the code builds but on execution I get crashes from BOOST calls. I have verified that test code with only a few BOOST calls and no ROOT calls executes without including w32pragma.h, and it reproduces my crash after force-including w32pragma.h.
well done, thanks for posting the solution! This mess is caused by Microsoft having an incompatible STL interface for debug and release builds that we (and many other people, too) work around by forcing the MS STL implementation to re-use the release version even in debug builds. Your original build of boost was using the (incompatible) debug implementation which was causing the failures you saw.