
17 May
2007
17 May
'07
6:39 p.m.
"Trigve Siver" <trigves@yahoo.com> wrote
--- typedef BOOST_TYPEOF(T.exec("SELECT 1")) type; // OK type rs; // fatal error ---
So, it seems to be able to deduce the type, but can't use it? I've never seen anything like this... Is it possible to get the name of the type: #include <typeinfo.h> cout << typeid(type).name(); or is it also "fatal error"? Also, if you define your own free function returning the same type, with no parameters, can BOOST_AUTO handle it? With one parameter? A member function with zero or one parameters? What exact version of the compiler are you using? Is it Microsoft Visual C++ 2005? Regards, Arkadiy