diff --git a/common/adc_spdlog.h b/common/adc_spdlog.h index 66c60a3..dda1a4f 100644 --- a/common/adc_spdlog.h +++ b/common/adc_spdlog.h @@ -84,37 +84,37 @@ public: } template - void logCritical(std::format_string fmt, ArgTs&&... args) + void logCritical(spdlog::format_string_t fmt, ArgTs&&... args) { _loggerSPtr->log(spdlog::level::critical, fmt, std::forward(args)...); } - template - void logError(std::format_string fmt, ArgTs&&... args) + template + void logError(spdlog::format_string_t fmt, ArgTs&&... args) { _loggerSPtr->log(spdlog::level::err, fmt, std::forward(args)...); } template - void logWarn(std::format_string fmt, ArgTs&&... args) + void logWarn(spdlog::format_string_t fmt, ArgTs&&... args) { _loggerSPtr->log(spdlog::level::warn, fmt, std::forward(args)...); } template - void logInfo(std::format_string fmt, ArgTs&&... args) + void logInfo(spdlog::format_string_t fmt, ArgTs&&... args) { _loggerSPtr->log(spdlog::level::info, fmt, std::forward(args)...); } template - void logDebug(std::format_string fmt, ArgTs&&... args) + void logDebug(spdlog::format_string_t fmt, ArgTs&&... args) { _loggerSPtr->log(spdlog::level::debug, fmt, std::forward(args)...); } template - void logTrace(std::format_string fmt, ArgTs&&... args) + void logTrace(spdlog::format_string_t fmt, ArgTs&&... args) { _loggerSPtr->log(spdlog::level::trace, fmt, std::forward(args)...); } diff --git a/device/adc_device.h b/device/adc_device.h index c48da6d..12b63ab 100644 --- a/device/adc_device.h +++ b/device/adc_device.h @@ -157,7 +157,7 @@ public: template AdcGenericDevice& addAttribute(CtorArgTs&&... ctor_args) { - return addAttribute({std::forward(ctor_args)...}); + return addAttribute(AttributeT(std::forward(ctor_args)...)); }