Expect:
fmt::is_formattable<void>::value == false
Actual (build error):
In file included from /opt/compiler-explorer/libs/fmt/trunk/include/fmt/format.h:41,
from <source>:1:
/opt/compiler-explorer/libs/fmt/trunk/include/fmt/base.h: In substitution of 'template<class T, class Char> using is_formattable = fmt::v11::bool_constant<(! std::is_base_of<fmt::v11::detail::unformattable, decltype (fmt::v11::detail::arg_mapper<Char>::map(declval<T&>()))>::value)> [with T = void; Char = char]':
<source>:6:44: required from here
/opt/compiler-explorer/libs/fmt/trunk/include/fmt/base.h:1269:73: error: forming reference to void
1269 | using mapped_t = decltype(detail::arg_mapper<Char>::map(std::declval<T&>()));
| ~~~~~~~~~~~~~~~~^~
Execution build compiler returned: 1
godbolt (new link):
https://godbolt.org/z/xro8619b4
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4