From 29295d3ff6dd87657d926e74ca4a1a6cbfa98d20 Mon Sep 17 00:00:00 2001 From: Alice Date: Thu, 1 Oct 2026 11:49:18 +0200 Subject: [PATCH] moved explicit instantiation after definiting templated functions --- .../slsDetectorServer_cpp/src/DetectorServerImpl.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/slsDetectorServers/slsDetectorServer_cpp/src/DetectorServerImpl.cpp b/slsDetectorServers/slsDetectorServer_cpp/src/DetectorServerImpl.cpp index 959fa2080..abc47935f 100644 --- a/slsDetectorServers/slsDetectorServer_cpp/src/DetectorServerImpl.cpp +++ b/slsDetectorServers/slsDetectorServer_cpp/src/DetectorServerImpl.cpp @@ -5,9 +5,6 @@ namespace sls { -template class DetectorServerImpl; // forward declare -template class DetectorServerImpl; // forward declare - template DetectorServerImpl::DetectorServerImpl() { udpDetails[0].srcport = DEFAULT_UDP_SRC_PORTNO; @@ -114,4 +111,9 @@ DetectorServerImpl::get_detector_setup_status() const { return detectorSetupStatus; } +template class DetectorServerImpl; // explicit instantiation for stop + // server +template class DetectorServerImpl; // explicit instantiation for control + // server + } // namespace sls \ No newline at end of file