
15 Feb
2012
15 Feb
'12
10:44 p.m.
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.