Skip to content

Commit

Permalink
Add API attributes to template class constructors for -O0 on Windows.
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
mmuetzel committed Nov 12, 2024
1 parent c908499 commit 004094b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libinterp/octave-value/ov-base-int.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,13 @@ class OCTINTERP_TEMPLATE_API octave_base_int_matrix : public octave_base_matrix<
{
public:

octave_base_int_matrix () : octave_base_matrix<T> () { }
OCTINTERP_OVERRIDABLE_FUNC_API octave_base_int_matrix ()
: octave_base_matrix<T> ()
{ }

octave_base_int_matrix (const T& nda) : octave_base_matrix<T> (nda) { }
OCTINTERP_OVERRIDABLE_FUNC_API octave_base_int_matrix (const T& nda)
: octave_base_matrix<T> (nda)
{ }

~octave_base_int_matrix () = default;

Expand Down

0 comments on commit 004094b

Please sign in to comment.