
Allen Ding wrote:
I think your understanding is right and the problem is with VC8. The following compiles on VC8, but if you remove the template definition for whatever, it fails as expected.
I tested Allen's example with VC 7.1. I got exactly the behavior that he reports with VC8. (The code compiles. If you remove the template definition for whatever, then it fails to compile.) Maybe there should be a regression test for this problem. Something like: -------------------------------------------------- // Expected behavior: should not compile #include <boost/any.hpp> #include <boost/array.hpp> ... all Boost headers ... #include <boost/xpressive/xpressive.hpp> shared_ptr<int> sp; ------------------------------------------------ --Johan