Re: [Quantity-users] Re: [Quantity-devel] generating a list of all units for a certain quantity
Brought to you by:
berndspeiser
|
From: <ber...@t-...> - 2004-07-06 12:35:48
|
Kai Ludwig wrote: > 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))) > Kai, in principle, this should work, as we already discussed. Could you make one more test: check: Unit *unitpointer = Concentration::AllUnits::unit (unit); Concentration c(0.01, *unitpointer); or ConcentrationUnit *unitpointer = ... (and as above) Does any of these work? 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 ======================================================================= |