sim: Fix compilation error for debug builds.
authorRichard Cooper <richard.cooper@arm.com>
Tue, 26 Jan 2021 15:34:18 +0000 (15:34 +0000)
committerRichard Cooper <richard.cooper@arm.com>
Wed, 27 Jan 2021 09:52:50 +0000 (09:52 +0000)
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 <odanrc@yahoo.com.br>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/sim/sim_object.cc

index 17dbd1da5a984ad6c7c080a53d2572769d80a153..28a0863f6bce2023c5d7b8c9016c477d9fa1d0b9 100644 (file)
@@ -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