Boost logo

Boost Users :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2007-05-17 14:39:19


"Trigve Siver" <trigves_at_[hidden]> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net