| 747 | } |
| 748 | |
| 749 | boost::optional<Unit> createUnit(const std::string& unitString, UnitSystem system) { |
| 750 | return UnitFactory::instance().createUnit(unitString, system); |
| 751 | } |
| 752 | |
| 753 | boost::optional<Unit> createUnit(const std::string& unitString) { |
| 754 | OptionalUnit unit; |