api: rip more TR1 prefixes
Paolo Bonzini
maintainerPATCH 1/1 api: rip more TR1 prefixes
Signed-off-by Paolo Bonzini <[email protected]>
--- api/identity.cc | 2 +- api/identity.hh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-)
api/identity.cc +1 -1
@@ -109,7 +109,7 @@ void vcpu::setup_regs() _vcpu.set_regs(regs); } -vcpu::vcpu(kvm::vcpu& vcpu, std::tr1::function<void ()> guest_func, +vcpu::vcpu(kvm::vcpu& vcpu, std::function<void ()> guest_func, unsigned long stack_size) : _vcpu(vcpu), _guest_func(guest_func), _stack(stack_size) {
api/identity.hh +5 -5
@@ -3,8 +3,8 @@ #include "kvmxx.hh" #include "memmap.hh" -#include <tr1/functional> -#include <tr1/memory> +#include <functional> +#include <memory> #include <vector> namespace identity {
@@ -22,13 +22,13 @@ public: ~vm(); private: void *tss; - typedef std::tr1::shared_ptr<mem_slot> mem_slot_ptr; + typedef std::shared_ptr<mem_slot> mem_slot_ptr; std::vector<mem_slot_ptr> _slots; }; class vcpu { public: - vcpu(kvm::vcpu& vcpu, std::tr1::function<void ()> guest_func, + vcpu(kvm::vcpu& vcpu, std::function<void ()> 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<void ()> _guest_func; + std::function<void ()> _guest_func; std::vector<char> _stack; };
Signature · 1 line
1.8.3.1