
6 Feb
2007
6 Feb
'07
11:46 p.m.
AMDG Matthias Schabel <boost <at> schabel-family.org> writes:
I would suggest that you have a pod_quantity for defining the various constants so that they can be safely used during the dynamic initilization phase.
I'm not sure I follow you here...could you elucidate a little more?
template<class Unit, class T = double> struct pod_quantity { //like quantity but without constructors/assignment operators T val_; }; constants.hpp pod_quantity<si::velocity> c = { 299792458 }; (for example) In Christ, Steven Watanabe