macOS build fix

This commit is contained in:
Markus Gans 2020-05-02 17:26:58 +02:00
parent d69b414094
commit 87777ad27c
1 changed files with 5 additions and 5 deletions

View File

@ -103,8 +103,8 @@ class FTermcap final
static char* getString (const CharT&);
template<typename CharT>
static char* encodeMotionParameter (const CharT&, int, int);
template<typename... Args>
static char* encodeParameter (Args&&...);
template<typename CharT, typename... Args>
static char* encodeParameter (const CharT&, Args&&...);
template<typename CharT>
static int paddingPrint (const CharT&, int, fn_putc);
@ -178,10 +178,10 @@ char* FTermcap::encodeMotionParameter (const CharT& cap, int col, int row)
}
//----------------------------------------------------------------------
template<typename... Args>
inline char* FTermcap::encodeParameter (Args&&... args)
template<typename CharT, typename... Args>
inline char* FTermcap::encodeParameter (const CharT& cap, Args&&... args)
{
return tparm (std::forward<Args>(args)...);
return tparm (C_STR(cap), std::forward<Args>(args)...);
}
//----------------------------------------------------------------------