]> git.saurik.com Git - ldid.git/commitdiff
Port to Apple's pathetic third-world toolchain :/.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 10 Oct 2015 21:40:36 +0000 (14:40 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 10 Oct 2015 21:40:36 +0000 (14:40 -0700)
ldid.hpp

index 8ea6cf7b3b0fe64e40599cc7f069df666d7e9eb6..576962d44d4ea3303b1315008634bd12d6483c2a 100644 (file)
--- a/ldid.hpp
+++ b/ldid.hpp
@@ -91,8 +91,21 @@ class UnionFolder :
     public Folder
 {
   private:
+    class StringBuffer :
+        public std::stringbuf
+    {
+      public:
+        StringBuffer() {
+        }
+
+        StringBuffer(const StringBuffer &rhs) :
+            std::stringbuf(rhs.str())
+        {
+        }
+    };
+
     Folder &parent_;
-    std::map<std::string, std::stringbuf> files_;
+    std::map<std::string, StringBuffer> files_;
 
   public:
     UnionFolder(Folder &parent);