mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-18 08:49:29 -04:00
refactor(logger): use std::conditional_t
over std::conditional
This commit is contained in:
parent
240a6a49da
commit
40277841cc
@ -195,13 +195,12 @@ class no_log_entry {
|
||||
namespace detail {
|
||||
|
||||
template <bool LoggingEnabled>
|
||||
using logger_type = typename std::conditional<LoggingEnabled, level_log_entry,
|
||||
no_log_entry>::type;
|
||||
using logger_type =
|
||||
std::conditional_t<LoggingEnabled, level_log_entry, no_log_entry>;
|
||||
|
||||
template <bool LoggingEnabled>
|
||||
using timed_logger_type =
|
||||
typename std::conditional<LoggingEnabled, timed_level_log_entry,
|
||||
no_log_entry>::type;
|
||||
std::conditional_t<LoggingEnabled, timed_level_log_entry, no_log_entry>;
|
||||
} // namespace detail
|
||||
|
||||
template <unsigned MinLogLevel>
|
||||
|
Loading…
x
Reference in New Issue
Block a user