0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::util: Fix template function reference.

This commit is contained in:
Jason Volk 2018-09-13 05:47:19 -07:00
parent 7d94b1c17b
commit 0238364421

View file

@ -237,7 +237,7 @@ ctype(const char *const &begin,
/// the template simply as `ctype<std::isprint>(const_buffer{"hi"});` which
/// should fail because const_buffer's over a string literal see the trailing
/// null character.
template<int (&test)(int)>
template<int (*test)(int)>
ssize_t
ctype(const const_buffer &s)
{
@ -245,7 +245,7 @@ ctype(const const_buffer &s)
}
/// Boolean alternative for ctype(const_buffer)
template<int (&test)(int)>
template<int (*test)(int)>
bool
all_of(const const_buffer &s)
{
@ -256,7 +256,7 @@ all_of(const const_buffer &s)
}
/// Boolean alternative for ctype(const_buffer)
template<int (&test)(int)>
template<int (*test)(int)>
bool
none_of(const const_buffer &s)
{