Skip to content

Commit 004094b

Browse files
committed
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.
1 parent c908499 commit 004094b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

libinterp/octave-value/ov-base-int.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,13 @@ class OCTINTERP_TEMPLATE_API octave_base_int_matrix : public octave_base_matrix<
5858
{
5959
public:
6060

61-
octave_base_int_matrix () : octave_base_matrix<T> () { }
61+
OCTINTERP_OVERRIDABLE_FUNC_API octave_base_int_matrix ()
62+
: octave_base_matrix<T> ()
63+
{ }
6264

63-
octave_base_int_matrix (const T& nda) : octave_base_matrix<T> (nda) { }
65+
OCTINTERP_OVERRIDABLE_FUNC_API octave_base_int_matrix (const T& nda)
66+
: octave_base_matrix<T> (nda)
67+
{ }
6468

6569
~octave_base_int_matrix () = default;
6670

0 commit comments

Comments
 (0)