Fixed clang c++20 compile
This commit is contained in:
		@@ -46,11 +46,11 @@ struct daily_filename_calculator
 | 
			
		||||
 */
 | 
			
		||||
struct daily_filename_format_calculator
 | 
			
		||||
{
 | 
			
		||||
    static filename_t calc_filename (const filename_t &filename, const tm &now_tm)
 | 
			
		||||
    static filename_t calc_filename(const filename_t &filename, const tm &now_tm)
 | 
			
		||||
    {
 | 
			
		||||
        // generate fmt datetime format string, e.g. {:%Y-%m-%d}.
 | 
			
		||||
        filename_t fmt_filename = fmt::format(SPDLOG_FILENAME_T ("{{:{}}}"), filename);
 | 
			
		||||
        return fmt::format(fmt_filename, now_tm);
 | 
			
		||||
        filename_t fmt_filename = fmt::format(SPDLOG_FILENAME_T("{{:{}}}"), filename);
 | 
			
		||||
        return fmt::format(fmt::runtime(fmt_filename), now_tm);
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user