]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
libc++: convert tr1 uses 1135/head
authorNoah Watkins <noahwatkins@gmail.com>
Fri, 24 Jan 2014 04:13:57 +0000 (20:13 -0800)
committerNoah Watkins <noahwatkins@gmail.com>
Fri, 24 Jan 2014 04:35:53 +0000 (20:35 -0800)
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
src/osd/ReplicatedBackend.h
src/test/osd/Object.h

index 025bad3370bf49153906397e91730d23ab02a4e3..b152f42b0f83aeddd9904dc4a4ff0fc46bd56078 100644 (file)
@@ -18,6 +18,7 @@
 #include "OSD.h"
 #include "PGBackend.h"
 #include "osd_types.h"
+#include "../include/memory.h"
 
 struct C_ReplicatedBackend_OnPullComplete;
 class ReplicatedBackend : public PGBackend {
@@ -466,7 +467,7 @@ private:
     RepModify() : applied(false), committed(false), ackerosd(-1),
                  epoch_started(0), bytes_written(0) {}
   };
-  typedef std::tr1::shared_ptr<RepModify> RepModifyRef;
+  typedef ceph::shared_ptr<RepModify> RepModifyRef;
 
   struct C_OSD_RepModifyApply : public Context {
     ReplicatedBackend *pg;
index 06547457af2aece89a8583e58ed0cb91137416ec..1f4defdcb67bdd52dd72372ff667b64984edb04e 100644 (file)
@@ -1,5 +1,4 @@
 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- 
-#include <tr1/memory>
 #include "include/interval_set.h"
 #include "include/buffer.h"
 #include "include/encoding.h"
@@ -277,12 +276,12 @@ public:
   public:
     uint64_t pos;
     ObjectDesc &obj;
-    list<pair<list<pair<std::tr1::shared_ptr<ContentsGenerator>,
+    list<pair<list<pair<ceph::shared_ptr<ContentsGenerator>,
                        ContDesc> >::iterator,
              uint64_t> > stack;
     map<ContDesc,ContentsGenerator::iterator> cont_iters;
     uint64_t limit;
-    list<pair<std::tr1::shared_ptr<ContentsGenerator>,
+    list<pair<ceph::shared_ptr<ContentsGenerator>,
              ContDesc> >::iterator cur_cont;
     
     iterator(ObjectDesc &obj) :
@@ -349,7 +348,7 @@ public:
 
   uint64_t version;
 private:
-  list<pair<std::tr1::shared_ptr<ContentsGenerator>, ContDesc> > layers;
+  list<pair<ceph::shared_ptr<ContentsGenerator>, ContDesc> > layers;
 };
 
 #endif