mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Merge pull request #634 from ColinDuquesnoy/patch-1
Fix compilation error with GCC 8
This commit is contained in:
commit
5eef243ab6
@ -81,7 +81,7 @@ public:
|
||||
// e.g. calc_filename("logs/mylog.txt, 3) => "logs/mylog.3.txt".
|
||||
static filename_t calc_filename(const filename_t& filename, std::size_t index)
|
||||
{
|
||||
std::conditional<std::is_same<filename_t::value_type, char>::value, fmt::MemoryWriter, fmt::WMemoryWriter>::type w;
|
||||
typename std::conditional<std::is_same<filename_t::value_type, char>::value, fmt::MemoryWriter, fmt::WMemoryWriter>::type w;
|
||||
if (index)
|
||||
{
|
||||
filename_t basename, ext;
|
||||
|
Loading…
Reference in New Issue
Block a user