Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Phoenix Arguments Passing & Storage (-- Proper Type?) & Application to RValues -- Possible?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-02-15 17:44:26

On 02/15/2012 06:33 PM, Matt wrote:

> I can find out the type name using non-portable typeid(Variable).name(),
> but the output is somewhat inconvenient (quoted below).
> Is there a nice-to-type solution?
> It'd be esp. useful for non-C++11 compiler, where I cannot use
> trailing-return-type for "newActor" function nor type deduction for "f"
> and "g" variables -- what's the suggested type in this situation?

There is a Typeof library in Boost that provides type deduction
capabilities with certain compilers (MSVC and GCC in particular).

There is definitely better than writing that type explicitly, but I
don't know what the best is.
Maybe the author can give more info on this.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at