Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Units - Can't figure out how to use it
From: Brandon Olivares (programmer2188_at_[hidden])
Date: 2009-12-23 13:45:31

On 2009-12-23, Steven Watanabe wrote:
> Brandon Olivares wrote:
>> I have a few other questions now though.
>> It is able to do scaling of units I know, but let's say you want to
>> use kilometer for instance. It appears you cannot have two length
>> units under the same system (correct?), so would you have to create
>> a new system just for that unit?
>> More practically, I need to use most of the astronomical units, or
>> at least light years, parsecs, and astronomical units. It seems I
>> can't put them under the same system, so must I have a separate
>> system for each of them, or am I missing something?
> You can just use the ::unit_type typedef in each base unit, if you
> don't want to worry about systems.

Thanks. Then may I ask what the use is for systems? When should one or the
other be used, or what is the advantages of each?

I'm sorry if my questions seem stupid, but I just started reading about this
library yesterday.

God bless,

> In Christ,
> Steven Watanabe
> _______________________________________________
> 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