Eh, the traditional spelling of this is
```C++
if (relaxation_type == "dampen") {
    // ...
}
```
That's *a lot* easier to read, in my opinion.

That said, I personally prefer using a `std::map<>` (or `std::unordered_map<>`) to do "string-to-enum" translations.