Boost logo

Boost Users :

Subject: Re: [Boost-users] Dynamically creating new units
From: Brandon Olivares (programmer2188_at_[hidden])
Date: 2009-12-26 02:16:22

On 2009-12-26, OvermindDL1 wrote:
> You could just auto it. :)
> BOOST_AUTO(v, l/t);
> Then you do not need to bother figuring out what type it is, although it
> is your light_year_per_hour, although maybe a little more efficient
> representation.
> If you just want the type of an expression like l/t if you want to
> typedef it or something, then you can use BOOST_TYPEOF. It is all in
> the documentation. :) _______________________________________________

Oh that's perfect; that has solved my problem! Thank you very much, and it only took 5 seconds to compile.


> Boost-users mailing list
> Boost-users_at_[hidden]

Blog and forum discussing living a Christ-centered life
Follow me on Twitter:

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