| 201 | } |
| 202 | |
| 203 | inline |
| 204 | value::~value() |
| 205 | { |
| 206 | switch (kind_) { |
| 207 | case Kind::String: |
| 208 | variant_.strValue.~basic_string(); |
| 209 | break; |
| 210 | |
| 211 | case Kind::StringList: |
| 212 | variant_.strList.~vector(); |
| 213 | break; |
| 214 | |
| 215 | case Kind::Empty: |
| 216 | case Kind::Bool: |
| 217 | case Kind::Long: |
| 218 | default: |
| 219 | // trivial dtor |
| 220 | break; |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | inline |
| 225 | value& value::operator=(value const& other) { |