We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fa41f0 commit 932a7d6Copy full SHA for 932a7d6
llvm/include/llvm/ADT/StringSwitch.h
@@ -54,17 +54,14 @@ class StringSwitch {
54
explicit StringSwitch(StringRef S)
55
: Str(S), Result() { }
56
57
+ StringSwitch(StringSwitch &&) = default;
58
+
59
// StringSwitch is not copyable.
60
StringSwitch(const StringSwitch &) = delete;
61
62
// StringSwitch is not assignable due to 'Str' being 'const'.
63
void operator=(const StringSwitch &) = delete;
- void operator=(StringSwitch &&other) = delete;
-
64
- StringSwitch(StringSwitch &&other)
65
- : Str(other.Str), Result(std::move(other.Result)) { }
66
67
- ~StringSwitch() = default;
+ void operator=(StringSwitch &&) = delete;
68
69
// Case-sensitive case matchers
70
StringSwitch &Case(StringLiteral S, T Value) {
0 commit comments