From: Richard Cooper Date: Tue, 26 Jan 2021 15:34:18 +0000 (+0000) Subject: sim: Fix compilation error for debug builds. X-Git-Tag: develop-gem5-snapshot~198 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d12b50e8ec353c7325579a5bc64fadf269b62df;p=gem5.git sim: Fix compilation error for debug builds. https://gem5-review.googlesource.com/c/public/gem5/+/39537 removed the implicit use of the std:: namespace. This change adds a missing namespace specifier for debug builds. Change-Id: I1d70602a870a25f68d7fec4b4931ba7cbbb4f4ca Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39760 Reviewed-by: Daniel Carvalho Reviewed-by: Jason Lowe-Power Reviewed-by: Gabe Black Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/sim/sim_object.cc b/src/sim/sim_object.cc index 17dbd1da5..28a0863f6 100644 --- a/src/sim/sim_object.cc +++ b/src/sim/sim_object.cc @@ -160,7 +160,7 @@ SimObject::debugObjectBreak(const std::string &objs) void debugObjectBreak(const char *objs) { - SimObject::debugObjectBreak(string(objs)); + SimObject::debugObjectBreak(std::string(objs)); } #endif