From 0d12b50e8ec353c7325579a5bc64fadf269b62df Mon Sep 17 00:00:00 2001 From: Richard Cooper Date: Tue, 26 Jan 2021 15:34:18 +0000 Subject: [PATCH] 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 --- src/sim/sim_object.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2