mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
ircd::util: Fix template function reference.
This commit is contained in:
parent
7d94b1c17b
commit
0238364421
1 changed files with 3 additions and 3 deletions
|
@ -237,7 +237,7 @@ ctype(const char *const &begin,
|
||||||
/// the template simply as `ctype<std::isprint>(const_buffer{"hi"});` which
|
/// the template simply as `ctype<std::isprint>(const_buffer{"hi"});` which
|
||||||
/// should fail because const_buffer's over a string literal see the trailing
|
/// should fail because const_buffer's over a string literal see the trailing
|
||||||
/// null character.
|
/// null character.
|
||||||
template<int (&test)(int)>
|
template<int (*test)(int)>
|
||||||
ssize_t
|
ssize_t
|
||||||
ctype(const const_buffer &s)
|
ctype(const const_buffer &s)
|
||||||
{
|
{
|
||||||
|
@ -245,7 +245,7 @@ ctype(const const_buffer &s)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Boolean alternative for ctype(const_buffer)
|
/// Boolean alternative for ctype(const_buffer)
|
||||||
template<int (&test)(int)>
|
template<int (*test)(int)>
|
||||||
bool
|
bool
|
||||||
all_of(const const_buffer &s)
|
all_of(const const_buffer &s)
|
||||||
{
|
{
|
||||||
|
@ -256,7 +256,7 @@ all_of(const const_buffer &s)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Boolean alternative for ctype(const_buffer)
|
/// Boolean alternative for ctype(const_buffer)
|
||||||
template<int (&test)(int)>
|
template<int (*test)(int)>
|
||||||
bool
|
bool
|
||||||
none_of(const const_buffer &s)
|
none_of(const const_buffer &s)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue