Skip to content

Commit 6f2b3f6

Browse files
authored
int: Proper forwarding (#1923)
Proper forwarding (for C++20?) Signed-off-by: Larry Gritz <[email protected]>
1 parent 0043bf9 commit 6f2b3f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/liboslcomp/oslcomp_pvt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ class OSLCompilerImpl {
363363

364364
// Output text to the osofile, using std::format formatting conventions.
365365
template<typename... Args>
366-
inline void osofmt(const char* fmt, const Args&... args) const
366+
inline void osofmt(const char* fmt, Args&&... args) const
367367
{
368-
fmt::print(*m_osofile, fmt, args...);
368+
fmt::print(*m_osofile, fmt, std::forward<Args>(args)...);
369369
}
370370

371371
void track_variable_lifetimes()

0 commit comments

Comments
 (0)