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.

Brandon

> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

--
Brandon
www.creatorspiritus.com
Blog and forum discussing living a Christ-centered life
Follow me on Twitter: http://twitter.com/devbanana

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