Re: [Quantity-users] Re: [Quantity-devel] generating a list of all units for a certain quantity
Brought to you by:
berndspeiser
From: Kai L. <kai...@un...> - 2004-07-06 07:11:46
|
more details... > Ok - works fine. But how can one generate the Unit of a physical > quantity with a string? > I tried the following, e.g. > > using namespace Quantities > > ... > > Concentration(0.01,*(Concentration::AllUnits::unit(unit))) the argument 'unit' is a string, dynamically acquired by a GUI. > > ... > > and got the error message: y/Variable.h: In constructor `Quantities::Variable<Quantities::Quantity<GT, Loki::Typelist<U, UTail>, DU, DT>, U>::Variable(DT, const NU&) [with NU =3D Units::Unit<Quantities::ConcentrationGroup, double>, GT =3D Quantities::ConcentrationGroup, Head =3D Quantities::ConcentrationUnits::MolePerLitre, Tail =3D Loki::Typelist<Quantities::ConcentrationUnits::MilliMolePerLitre, Loki::NullType>, DU =3D Quantities::ConcentrationUnits::MolePerLitre, U =3D Quantities::ConcentrationUnits::MolePerLitre, DT =3D double]':modelParame= tersDialog.cpp:328: instantiated from here > antity/Variable.h:125: error: incomplete type 'Units::UnitError<true>' > cannot be used to name a scope Kai --=20 http://echempp.sourceforge.net Kai Ludwig Institut f=FCr Organische Chemie Auf der Morgenstelle 18 72076 T=FCbingen Tel.: 07071/29-73049 Mail: kai...@un... |