| 1229 | { |
| 1230 | public: |
| 1231 | OptionDetails |
| 1232 | ( |
| 1233 | std::string short_, |
| 1234 | std::string long_, |
| 1235 | String desc, |
| 1236 | std::shared_ptr<const Value> val |
| 1237 | ) |
| 1238 | : m_short(std::move(short_)) |
| 1239 | , m_long(std::move(long_)) |
| 1240 | , m_desc(std::move(desc)) |
| 1241 | , m_value(std::move(val)) |
| 1242 | , m_count(0) |
| 1243 | { |
| 1244 | m_hash = std::hash<std::string>{}(m_long + m_short); |
| 1245 | } |
| 1246 | |
| 1247 | OptionDetails(const OptionDetails& rhs) |
| 1248 | : m_desc(rhs.m_desc) |