Some of the problems you are running into have been fixed since the July Beta was released, including problems in the gcc headers. The preprocessed code includes the unfixed headers, so I can't really tell whether your test case would now work.
We also find problems in BOOST, and we have not tested with version 1.54. We are testing Studio 12.4 with Boost 1.55.
If you can post a relatively small test case (not preprocessed), I can tell you whether we can build it with Boost 1.55.
This looks very much like a recent bug with std::map introduced with the change to g++ 4.8 headers in July Beta:
19159587 C++11: errors on a simple <map> usage
It has been reported on forums - +d flag can cause C++ compilation failure in 12.4 beta refresh
This bug will be fixed in a final release.
Unfortunately there is no workaround for this problem.