Replace std::tr1::shared_ptr by std::shared_ptr.
This patch replaces C++ Technical Report 1 additions to C++03 with
the newer C++11 name.
Includes and using statements updated accordingly.
BUG=None
TEST=Build and unittests.
Change-Id: I9bdad6d39684545c786f5c76fb598a15b557d6eb
Reviewed-on: https://chromium-review.googlesource.com/200665
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: David Zeuthen <zeuthen@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
diff --git a/action_pipe.h b/action_pipe.h
index 8e4f761..99f98cf 100644
--- a/action_pipe.h
+++ b/action_pipe.h
@@ -6,12 +6,14 @@
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_PIPE_H_
#include <stdio.h>
+
#include <iostream>
#include <map>
+#include <memory>
#include <string>
-#include <tr1/memory>
-#include "base/basictypes.h"
-#include "base/logging.h"
+
+#include <base/basictypes.h>
+#include <base/logging.h>
// The structure of these classes (Action, ActionPipe, ActionProcessor, etc.)
// is based on the KSAction* classes from the Google Update Engine code at
@@ -56,7 +58,7 @@
// when the last Action is destroyed.
template<typename FromAction, typename ToAction>
static void Bond(FromAction* from, ToAction* to) {
- std::tr1::shared_ptr<ActionPipe<ObjectType> > pipe(
+ std::shared_ptr<ActionPipe<ObjectType> > pipe(
new ActionPipe<ObjectType>);
from->set_out_pipe(pipe);