Skip to content

Commit

Permalink
Moved the template instantiations to the front
Browse files Browse the repository at this point in the history
  • Loading branch information
berndporr committed Dec 27, 2018
1 parent 8842d1b commit cbf0866
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions iir/MathSupplement.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@

#include<complex>

#ifdef _MSC_VER
// Under Unix these have already default instantiations but not under Vis Studio
template class DllExport std::complex<double>;
template class DllExport std::complex<float>;
#endif

namespace Iir {

Expand All @@ -48,12 +53,6 @@ const double doublePi_2 =1.5707963267948966192313216916397514420986;
const double doubleLn2 =0.69314718055994530941723212145818;
const double doubleLn10 =2.3025850929940456840179914546844;

#ifdef _MSC_VER
// Under Unix these have already default instantiations but not under Vis Studio
template class DllExport std::complex<double>;
template class DllExport std::complex<float>;
#endif

typedef std::complex<double> complex_t;
typedef std::pair<complex_t, complex_t> complex_pair_t;

Expand Down

0 comments on commit cbf0866

Please sign in to comment.