0
0
Fork 0
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:
Jason Volk 2018-04-24 17:08:43 -07:00
parent 47dc4c2afa
commit c3e07cb9cb

View file

@ -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>