Boost logo

Boost :

From: k.hagan_at_[hidden]
Date: 2001-06-26 07:34:53


--- Peter Schmitteckert wrote:
>
> I never had to cast away units, sometime one redefine c = \hbar = 1
> to get rid of all notation inconveniences, but that's just another
> unit system.

Agreed. We could do without unit casts if multiplication by,
for example, the following constant could be optimised away
at compile-time.

   length_t const length( 1 * meter() );

I haven't peered far enough into the proposal to see if a compiler
has a reasonable chance of spotting this.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk