From 248ac4101aa1737ed631f7d391a8950ae39d5f9a Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Sat, 4 Jan 2025 11:06:23 -0800 Subject: [PATCH] Proper forwarding (for C++20?) Signed-off-by: Larry Gritz --- src/liboslcomp/oslcomp_pvt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/liboslcomp/oslcomp_pvt.h b/src/liboslcomp/oslcomp_pvt.h index 27a1cedb3..4838c5b91 100644 --- a/src/liboslcomp/oslcomp_pvt.h +++ b/src/liboslcomp/oslcomp_pvt.h @@ -363,9 +363,9 @@ class OSLCompilerImpl { // Output text to the osofile, using std::format formatting conventions. template - inline void osofmt(const char* fmt, const Args&... args) const + inline void osofmt(const char* fmt, Args&&... args) const { - fmt::print(*m_osofile, fmt, args...); + fmt::print(*m_osofile, fmt, std::forward(args)...); } void track_variable_lifetimes()