Skip to content

Commit

Permalink
Proper forwarding (for C++20?)
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <lg@larrygritz.com>
  • Loading branch information
lgritz committed Jan 25, 2025
1 parent b795e3e commit 309cf11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/liboslcomp/oslcomp_pvt.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ class OSLCompilerImpl {

// Output text to the osofile, using std::format formatting conventions.
template<typename... Args>
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>(args)...);
}

void track_variable_lifetimes()
Expand Down

0 comments on commit 309cf11

Please sign in to comment.