Ver Fonte

AK: Make SourceGenerator move constructible

This makes us able to return one from a function
Hendiadyoin1 há 3 anos atrás
pai
commit
14caecefb1
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      AK/SourceGenerator.h

+ 2 - 0
AK/SourceGenerator.h

@@ -33,6 +33,8 @@ public:
     {
     }
 
+    SourceGenerator(SourceGenerator&&) = default;
+
     SourceGenerator fork() { return SourceGenerator { m_builder, m_mapping, m_opening, m_closing }; }
 
     void set(StringView key, String value) { m_mapping.set(key, value); }