mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd: Fix allocator construction in tokens template.
This commit is contained in:
parent
47dc4c2afa
commit
c3e07cb9cb
1 changed files with 2 additions and 4 deletions
|
@ -138,8 +138,7 @@ C<T, Comp, A>
|
|||
ircd::tokens(const string_view &str,
|
||||
const delim &sep)
|
||||
{
|
||||
A allocator;
|
||||
return tokens<C, T, Comp, A>(allocator, str, sep);
|
||||
return tokens<C, T, Comp, A>(A{}, str, sep);
|
||||
}
|
||||
|
||||
template<template<class, class, class>
|
||||
|
@ -172,8 +171,7 @@ C<T, A>
|
|||
ircd::tokens(const string_view &str,
|
||||
const delim &sep)
|
||||
{
|
||||
A allocator;
|
||||
return tokens<C, T, A>(allocator, str, sep);
|
||||
return tokens<C, T, A>(A{}, str, sep);
|
||||
}
|
||||
|
||||
template<template<class, class>
|
||||
|
|
Loading…
Reference in a new issue