From a5385cebf4e64a0080a758515f40c871814750ed Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Fri, 7 May 2021 08:24:52 +0200 Subject: [PATCH] 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 --- repos/os/src/server/block_cache/main.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repos/os/src/server/block_cache/main.cc b/repos/os/src/server/block_cache/main.cc index c0ffb1c128..b2af7b6345 100644 --- a/repos/os/src/server/block_cache/main.cc +++ b/repos/os/src/server/block_cache/main.cc @@ -44,6 +44,9 @@ void Driver::Policy::sync(const typename POLICY::Element *e, char *dst) } } +/* explicit instantiation for external reference */ +template void Driver::Policy::sync(const typename Policy::Element *, char *); + struct Main {