[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:06:08
|
> The AllUnits template now contains a new member function `allsymbols > ()'. This returns a std::vector<std::string> of the unit symbols which > are listed for a certain quantity. > Could be used as > > std::vector<std::string> timeunit_symbols Time::AllUnits::allsymbols > (); 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))) ... and got the error message: 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... |