bfjm
## Env ```bash g++ --version g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ``` ## Cause ``` format.inl:32:24: error: expected primary-expression before ‘wchar_t’ 32 | return fmt::vprint<wchar_t>(pattern, fmt::make_format_args<fmt::wformat_context>(args...)); format.inl:32:24: error: expected ‘;’ before ‘wchar_t’ 32 | return fmt::vprint<wchar_t>(pattern, fmt::make_format_args<fmt::wformat_context>(args...)); ``` In my view, vprint is not a template function. ```c++ inline void vprint(wstring_view fmt, wformat_args args) { vprint(stdout, fmt, args); } ``` code usage ```c++ template <typename... T> inline void print(fmt::wformat_string<T...> pattern, T&&... args) { return fmt::vprint<wchar_t>(pattern, fmt::make_format_args<fmt::wformat_context>(args...)); } ``` ## Solution ```c++ template <typename... T> inline void print(fmt::wformat_string<T...> pattern, T&&... args) { return fmt::vprint(pattern, fmt::make_format_args<fmt::wformat_context>(args...)); } ```