
Evaluating Boost.Typeof library with MSVC 7.1 compiler. Since this compiler has native typeof trick, BOOST_TYPEOF and BOOST_AUTO work fine by default. But with regard to future upgrade to MSVC 8.0, I want to have my TYPEOF-related code portable, i.e. registering all those user types for proper TYPEOF emulation. When I "#define BOOST_TYPEOF_COMPLIANT", nothing happens and the code proceeds working even without registering my types. I would expect BOOST_TYPEOF_COMPLIANT definition to cause compiler errors for not registered types. Here's the code snippet that I am trying to compile: #include <boost/typeof/typeof.hpp> #define BOOST_TYPEOF_COMPLIANT struct X {}; template<typename A, bool B> struct Y {}; typedef std::pair<X, Y<int, true> > Pair_t; Pair_t a; BOOST_AUTO(b, a); BOOST_AUTO(pp, Pair_t()); What do I miss here? Thank you, Sergey Bulygin