Are you by chance using Boost MultiArray? I know that in VS2010, there is a bug in MultiArray which causes compiles to fail unless you disable iterator debugging.

If you do that, however, all compiled boost libraries (such as Thread) must be built with the same _HAS_ITERATOR_DEBUGGING flag set. You can set this on the bjam command line.