
"Trigve Siver" <trigves@yahoo.com> wrote
Strange...
Can you post the entire file where you use BOOST_AUTO (and also the file(s) where you register your types)?
Hi, of course...
Well, I don't have PostgreSQL, and can't reproduce the situation without it :( So I am going to ask you to try a couple more things. Can you try all of these: 1) typedef BOOST_TYPEOF(T.exec("SELECT 1")) type; 2) boost::type_of::encode<boost::type_of::vector0<> >(T.exec("SELECT 1")); 3) boost::type_of::encode<boost::type_of::vector0<> >(T.exec("SELECT 1")).item0; 4) sizeof(boost::type_of::encode<boost::type_of::vector0<> >(T.exec("SELECT 1")).item0); 5) typedef boost::mpl::size_t<sizeof(boost::type_of::encode<boost::type_of::vector0<>
(T.exec("SELECT 1")).item0)> type;
Which one compiles and which doesn't? Regards, Arkadiy