diff options
author | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2017-10-16 17:20:08 +0100 |
---|---|---|
committer | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2017-10-20 08:32:03 +0000 |
commit | 2a4d6925bc678e3cfa93e3560ec9a4c7f8e6ec2b (patch) | |
tree | b7b20269d934deeea4b931eca5d691a6de67105b /src/kern/system_events.cc | |
parent | cc52235454bc1bf60100e15043d89019b857d134 (diff) | |
download | gem5-2a4d6925bc678e3cfa93e3560ec9a4c7f8e6ec2b.tar.xz |
base: Defining make_unique for C++11
std::make_unique is not available for C++11 compilers, and it has been
introduced only in C++14. Since gem5 is not officially supporting the
latter at the moment, this patch allows to use it in gem5 if including
base/compiler.hh. If compiled under C++14, std::make_unique will be
used instead.
Change-Id: Ibf1897fad0a1eb1cb0c683cc25170feaa6841997
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/5201
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/kern/system_events.cc')
0 files changed, 0 insertions, 0 deletions