From 4e67ab6663f8f4960a1078546906746877f87e1a Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Thu, 16 Oct 2014 05:49:45 -0400 Subject: dev: Use shared_ptr for Arguments::Data This patch takes a first few steps in transitioning from the ad-hoc RefCountingPtr to the c++11 shared_ptr. There are no changes in behaviour, and the code modifications are mainly introducing the use of make_shared. Note that the class could use unique_ptr rather than shared_ptr, was it not for the postfix increment and decrement operators. --- src/kern/linux/printk.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kern') diff --git a/src/kern/linux/printk.cc b/src/kern/linux/printk.cc index 7a4c551ce..c2cf60964 100644 --- a/src/kern/linux/printk.cc +++ b/src/kern/linux/printk.cc @@ -34,6 +34,7 @@ #include #include "base/trace.hh" +#include "cpu/thread_context.hh" #include "kern/linux/printk.hh" #include "sim/arguments.hh" -- cgit v1.2.3