Merge pull request #1643 from MerryMage/make_unique

Common: Remove Common::make_unique, use std::make_unique
This commit is contained in:
Mathew Maidment 2016-04-05 20:10:11 -04:00
commit aa6380e5bc
24 changed files with 46 additions and 73 deletions

View file

@ -42,7 +42,6 @@ set(HEADERS
logging/filter.h
logging/log.h
logging/backend.h
make_unique.h
math_util.h
memory_util.h
microprofile.h

View file

@ -1,17 +0,0 @@
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <algorithm>
#include <memory>
namespace Common {
template <typename T, typename... Args>
std::unique_ptr<T> make_unique(Args&&... args) {
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
} // namespace