block_cache: explicitly instantiate template function

The explicit instantiation is required because the function is defined
in the compilation unit only but referenced externally.

Fixes #4108
This commit is contained in:
Christian Helmuth 2021-05-07 08:24:52 +02:00
parent c5c3d7ca98
commit a5385cebf4

View File

@ -44,6 +44,9 @@ void Driver<POLICY>::Policy::sync(const typename POLICY::Element *e, char *dst)
}
}
/* explicit instantiation for external reference */
template void Driver<Policy>::Policy::sync(const typename Policy::Element *, char *);
struct Main
{