Re: [Quantity-devel] Re: [Quantity-users] new constructors
Brought to you by:
berndspeiser
|
From: <ber...@t-...> - 2004-07-06 21:45:45
|
Kai Ludwig wrote: >>The new constructors for Variables and Constants from a number and a >>unit (either as std::string or char *) have been uploaded to the cvs >>server. Have fun! > > > > Bernd, > > are you sure that you've uploaded the modified version? > I've done a fresh checkout but could not find the > Constructors. > Also I've tried > > Concentration cc(0.5,"molL^-1"); > > to the test program and it did not compile: > > e.h: In constructor > `Quantities::Variable<Quantities::Quantity<GT, Loki::Typelist<U, > UTail>, DU, DT>, U>::Variable(DT, const NU&) [with NU = char[8], GT > = Quantities::ConcentrationGroup, Head = > Quantities::ConcentrationUnits::MolePerLitre, Tail = > Loki::Typelist<Quantities::ConcentrationUnits::MilliMolePerLitre, > Loki::NullType>, DU = Quantities::ConcentrationUnits::MolePerLitre, U > = Quantities::ConcentrationUnits::MolePerLitre, DT = double]': > modelParametersDialog.cpp:339: instantiated from here > /home/kl/software/src/quantity/Quantities/Quantity/Variable.h:125: no > method ` Units::UnitError<true>::Standard' I thought I did. But in the meantime some further changes have been made and uploaded (around 23:30, Tuesday). The above should work. If it doesn't you can not have the most rectn version, and something is wrong. Bernd -- ======================================================================= Bernd Speiser Institut f"ur Organische Chemie Auf der Morgenstelle 18 D-72076 T"ubingen Germany phone: +49-7071-2976205 (office) +49-7071-2976242 (laboratory) fax: +49-7071-295518 e-mail: ber...@un... Internet: http://www.uni-tuebingen.de/speiser ======================================================================= |