Forráskód Böngészése

AK: Make SourceGenerator move constructible

This makes us able to return one from a function
Hendiadyoin1 3 éve
szülő
commit
14caecefb1
1 módosított fájl, 2 hozzáadás és 0 törlés
  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 }; }
     SourceGenerator fork() { return SourceGenerator { m_builder, m_mapping, m_opening, m_closing }; }
 
 
     void set(StringView key, String value) { m_mapping.set(key, value); }
     void set(StringView key, String value) { m_mapping.set(key, value); }