From 569426d861ac9336f4083e55f98284b4c647c795 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 23 Aug 2019 11:54:20 -0700 Subject: [PATCH] [debug] Fix build with HB_DEBUG Fixes https://github.com/harfbuzz/harfbuzz/issues/1923 --- src/hb-debug.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hb-debug.hh b/src/hb-debug.hh index e6d06e310..09437db6b 100644 --- a/src/hb-debug.hh +++ b/src/hb-debug.hh @@ -296,7 +296,8 @@ struct hb_auto_trace_t if (plevel) --*plevel; } - ret_t ret (ret_t v, + template + T ret (T&& v, const char *func = "", unsigned int line = 0) { @@ -307,7 +308,7 @@ struct hb_auto_trace_t _hb_debug_msg (what, obj, func, true, plevel ? *plevel : 1, -1, "return %s (line %d)", - hb_printer_t().print (v), line); + hb_printer_t().print (v), line); if (plevel) --*plevel; plevel = nullptr; returned = true;