From 004094bcd29ff12184da19231bf7647ed2fc871b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Tue, 12 Nov 2024 18:11:20 +0100 Subject: [PATCH] Add API attributes to template class constructors for -O0 on Windows. * libinterp/octave-value/ov-base-int.h (octave_base_int_matrix::octave_base_int_matrix): Add dllexport attributes for constructors that are usually omitted but that need to be exported from the liboctinterp DLL when building with -O0 on Windows. --- libinterp/octave-value/ov-base-int.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libinterp/octave-value/ov-base-int.h b/libinterp/octave-value/ov-base-int.h index f7fb347a82..87f0af867a 100644 --- a/libinterp/octave-value/ov-base-int.h +++ b/libinterp/octave-value/ov-base-int.h @@ -58,9 +58,13 @@ class OCTINTERP_TEMPLATE_API octave_base_int_matrix : public octave_base_matrix< { public: - octave_base_int_matrix () : octave_base_matrix () { } + OCTINTERP_OVERRIDABLE_FUNC_API octave_base_int_matrix () + : octave_base_matrix () + { } - octave_base_int_matrix (const T& nda) : octave_base_matrix (nda) { } + OCTINTERP_OVERRIDABLE_FUNC_API octave_base_int_matrix (const T& nda) + : octave_base_matrix (nda) + { } ~octave_base_int_matrix () = default;