Description: Fix FTBFS with GCC-14.
Bug-Debian: https://bugs.debian.org/1075270
Author: Yavor Doganov <yavor@gnu.org>
Forwarded: no
Last-Update: 2025-10-17
---

--- mia.orig/mia/2d/shape.hh
+++ mia/mia/2d/shape.hh
@@ -28,6 +28,8 @@
 
 NS_MIA_BEGIN
 
+extern template class EXPORT_2D TShape<T2DVector, C2DBitImage>;
+
 /// 2D shape class, see also TShape
 typedef TShape<T2DVector, C2DBitImage> C2DShape;
 
@@ -42,8 +44,6 @@
 /// Plug-in handler for the shape plug-ins
 typedef THandlerSingleton<TFactoryPluginHandler<C2DShapePlugin>> C2DShapePluginHandler;
 
-extern template class EXPORT_2D TShape<T2DVector, C2DBitImage>;
-
 /**
    Convenience function to produce a shape from a plugin
    \param shape the description of the shape
--- mia.orig/mia/3d/shape.hh
+++ mia/mia/3d/shape.hh
@@ -26,6 +26,8 @@
 
 NS_MIA_BEGIN
 
+extern template class EXPORT_3D TShape<T3DVector, C3DBitImage>;
+
 /**
    @ingroup misc
    @brief a 3D bit shape for morphological processing \sa TShape
@@ -50,7 +52,6 @@
 */
 typedef THandlerSingleton<TFactoryPluginHandler<C3DShapePlugin>> C3DShapePluginHandler;
 
-extern template class EXPORT_3D TShape<T3DVector, C3DBitImage>;
 /// @cond never
 FACTORY_TRAIT(C3DShapePluginHandler);
 /// @endcond
