From 58ec164528ed6fb5e9693fe60b3c21971e1aea4b Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Tue, 17 Nov 2020 17:42:18 +0100 Subject: [PATCH] dqm_algorithms: Fix compilation with clang. The template definitions for LastBinThresholdAction are only in the cxx file. So need to ensure within that file that instantations of that template are complete. --- DataQuality/dqm_algorithms/src/LastBinThresholdAction.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DataQuality/dqm_algorithms/src/LastBinThresholdAction.cxx b/DataQuality/dqm_algorithms/src/LastBinThresholdAction.cxx index a4a9e6e0fbd1..de2880dcabbd 100644 --- a/DataQuality/dqm_algorithms/src/LastBinThresholdAction.cxx +++ b/DataQuality/dqm_algorithms/src/LastBinThresholdAction.cxx @@ -201,3 +201,8 @@ void dqm_algorithms::LastBinThresholdAction<Exceed, Action>::printDescription(st out << "Optional parameter: NBinsToWatch - number of final bins that will be checked. (NBinsToWatch >= 1, default = -1)" << std::endl; } + +// Make sure these are completely instantiated here, as the definitions +// are only in this file. +template class dqm_algorithms::LastBinThresholdAction<dqm_algorithms::GreaterThan, dqm_algorithms::TileDQAction>; +template class dqm_algorithms::LastBinThresholdAction<dqm_algorithms::DifferentThan, dqm_algorithms::TileDQAction>; -- GitLab