mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-09 12:50:05 +00:00
Make is_formattable work with const/volatile void
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
parent
6aaf7f4b79
commit
1cc10ab68f
@ -2819,11 +2819,11 @@ template <typename Char, typename... T> class fstring {
|
||||
template <typename... T> using format_string = typename fstring<char, T...>::t;
|
||||
|
||||
template <typename T, typename Char = char>
|
||||
using is_formattable = bool_constant<!std::is_base_of<
|
||||
detail::unformattable,
|
||||
detail::mapped_t<
|
||||
conditional_t<std::is_same<T, void>::value, detail::unformattable, T>,
|
||||
Char>>::value>;
|
||||
using is_formattable = bool_constant<
|
||||
!std::is_base_of<detail::unformattable,
|
||||
detail::mapped_t<conditional_t<std::is_void<T>::value,
|
||||
detail::unformattable, T>,
|
||||
Char>>::value>;
|
||||
|
||||
#ifdef __cpp_concepts
|
||||
template <typename T, typename Char = char>
|
||||
|
Loading…
Reference in New Issue
Block a user