From c9ed0f067d779e89f94bb2d0a2d25618a69f4623 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 9 Sep 2020 01:44:51 -0500 Subject: [PATCH] gen_ostream_ops.py fix - ostream operators as inline static Change-Id: I9688236b06dd167960662b8eecf1a07c93b43fff --- script/gen_ostream_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/gen_ostream_ops.py b/script/gen_ostream_ops.py index 900c36776c..73585ce89d 100755 --- a/script/gen_ostream_ops.py +++ b/script/gen_ostream_ops.py @@ -167,7 +167,7 @@ def gen_cppheader(infilepath, outfilepath, structs_depth): continue if len(cppHeader.classes[c]["properties"]["public"])!=0: if apiname.lower() == 'hip' or apiname.lower() == 'hsa': - f.write("std::ostream& operator<<(std::ostream& out, const " + c + "& v)\n") + f.write("inline static std::ostream& operator<<(std::ostream& out, const " + c + "& v)\n") f.write("{\n") f.write(" roctracer::" + apiname.lower() + "_support::operator<<(out, '{');\n") if structs_depth != -1: