mirror of
https://github.com/gabime/spdlog.git
synced 2026-04-10 11:34:29 +08:00
remove conditional is_convertible_* structs for wide chars
This commit is contained in:
@@ -102,10 +102,8 @@ public:
|
||||
log(loc, lvl, string_view_t{msg});
|
||||
}
|
||||
|
||||
// T cannot be statically converted to neither string_view, nor wstring_view and nor format string
|
||||
template<class T,
|
||||
typename std::enable_if<
|
||||
!is_convertible_to_any_string_view<const T &>::value && !is_convertible_to_any_format_string<const T &>::value, int>::type = 0>
|
||||
// T cannot be statically converted to format string (including string_view)
|
||||
template<class T, typename std::enable_if<!is_convertible_to_any_format_string<const T &>::value, int>::type = 0>
|
||||
void log(source_loc loc, level::level_enum lvl, const T &msg)
|
||||
{
|
||||
log(loc, lvl, "{}", msg);
|
||||
|
||||
Reference in New Issue
Block a user