Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2007-04-05 12:46:28


Michael Marcin <mmarcin <at>> writes:

> Is there a
> configuration of this library one can use that could ensure drop in
> compatability with raw floating-point types?
> I'm thinking you could control dimensional analysis with a preprocessor
> switch (much like many people do for concept checking now).
> What would this take? Would disallowing all implicit and explicit
> conversions be sufficient?

Not quite. You would also have to make the
static units such as meters have type
boost::units::detail::one or some equivalent
type so that the construction syntax remains
the same. I haven't actually tried it, so that
may still not be enough.

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at