Skip to content

Commit 5fe1b46

Browse files
authored
Merge pull request #2492 from DARMA-tasking/2491-fix-bug-in-string-concatenation
#2491: debug: convert first argument of string concat to a explicit string
2 parents 1cee0d6 + fecf959 commit 5fe1b46

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vt/configs/debug/debug_print.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@
7878
vt_print_colorize_impl(::vt::debug::bd_green(), "vt", ":")
7979

8080
#define vt_proc_print_colorize(proc) \
81-
vt_print_colorize_impl(::vt::debug::blue(), "[" + std::to_string(proc) + "]", "")
81+
vt_print_colorize_impl( \
82+
::vt::debug::blue(), std::string("[") + std::to_string(proc) + "]", \
83+
"" \
84+
)
8285

8386
#define vt_debug_argument_option(opt) \
8487
::vt::debug::preConfig()->vt_debug_ ## opt

0 commit comments

Comments
 (0)