
5 Apr
2007
5 Apr
'07
4:46 p.m.
AMDG Michael Marcin <mmarcin <at> method-solutions.com> 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