| 544 | |
| 545 | /// Generate description like this: NUMBER [UNIT] |
| 546 | template <typename Number> static std::string generate_description(const std::string &name, Options opts) { |
| 547 | std::stringstream out; |
| 548 | out << detail::type_name<Number>() << ' '; |
| 549 | if(opts & UNIT_REQUIRED) { |
| 550 | out << name; |
| 551 | } else { |
| 552 | out << '[' << name << ']'; |
| 553 | } |
| 554 | return out.str(); |
| 555 | } |
| 556 | }; |
| 557 | |
| 558 | inline AsNumberWithUnit::Options operator|(const AsNumberWithUnit::Options &a, const AsNumberWithUnit::Options &b) { |
nothing calls this directly
no outgoing calls
no test coverage detected