From: Paolo Bonzini Subject: [PATCH kvm-unit-tests] api: rip more TR1 prefixes Date: Tue, 9 May 2017 17:44:13 +0200 Message-ID: <1494344654-13357-2-git-send-email-pbonzini@redhat.com> To: kvm@vger.kernel.org Return-path: Received: from mail-wr0-f196.google.com ([209.85.128.196]:34561 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754204AbdEIPoX (ORCPT ); Tue, 9 May 2017 11:44:23 -0400 Received: by mail-wr0-f196.google.com with SMTP id 6so1107897wrb.1 for ; Tue, 09 May 2017 08:44:23 -0700 (PDT) Received: from 640k.localdomain.com (94-39-148-124.adsl-ull.clienti.tiscali.it. [94.39.148.124]) by smtp.gmail.com with ESMTPSA id 185sm564573wmo.10.2017.05.09.08.44.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 May 2017 08:44:19 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Paolo Bonzini --- api/identity.cc | 2 +- api/identity.hh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/identity.cc b/api/identity.cc index 2e7987f..6dd4231 100644 --- a/api/identity.cc +++ b/api/identity.cc @@ -109,7 +109,7 @@ void vcpu::setup_regs() _vcpu.set_regs(regs); } -vcpu::vcpu(kvm::vcpu& vcpu, std::tr1::function guest_func, +vcpu::vcpu(kvm::vcpu& vcpu, std::function guest_func, unsigned long stack_size) : _vcpu(vcpu), _guest_func(guest_func), _stack(stack_size) { diff --git a/api/identity.hh b/api/identity.hh index 2e75a08..b95cb15 100644 --- a/api/identity.hh +++ b/api/identity.hh @@ -3,8 +3,8 @@ #include "kvmxx.hh" #include "memmap.hh" -#include -#include +#include +#include #include namespace identity { @@ -22,13 +22,13 @@ public: ~vm(); private: void *tss; - typedef std::tr1::shared_ptr mem_slot_ptr; + typedef std::shared_ptr mem_slot_ptr; std::vector _slots; }; class vcpu { public: - vcpu(kvm::vcpu& vcpu, std::tr1::function guest_func, + vcpu(kvm::vcpu& vcpu, std::function guest_func, unsigned long stack_size = 256 * 1024); private: static void thunk(vcpu* vcpu); @@ -36,7 +36,7 @@ private: void setup_sregs(); private: kvm::vcpu& _vcpu; - std::tr1::function _guest_func; + std::function _guest_func; std::vector _stack; }; -- 1.8.3.1