From 4b40bc50650128748d439c8e35a1ddbdfe88cec4 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sat, 3 Oct 2020 19:45:58 +0300 Subject: [PATCH] query-result-reader: order idl implementations correctly Clang eagerly instantiates templates, so if it needs a template function for which it has a declaration but not a definition, it will not instantiate the definition when it sees it. This causes link errors. Fix by ordering the idl implementation files so that definitions come before uses. --- query-result-reader.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/query-result-reader.hh b/query-result-reader.hh index 0a395dac05..73c1c67918 100644 --- a/query-result-reader.hh +++ b/query-result-reader.hh @@ -33,9 +33,9 @@ #include "idl/query.dist.hh" #include "serializer_impl.hh" #include "serialization_visitors.hh" -#include "idl/query.dist.impl.hh" -#include "idl/keys.dist.impl.hh" #include "idl/uuid.dist.impl.hh" +#include "idl/keys.dist.impl.hh" +#include "idl/query.dist.impl.hh" namespace query {