diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-28 11:08:41 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-28 13:52:37 +0200 |
commit | 57c0f073ec38351aa659693cc16f6e3ab4ec28da (patch) | |
tree | 22f746578c98c1d2c2b73ad2cdf6d40050573f73 | |
parent | 72f8b70f05e532224cb95a7501676d0211902f72 (diff) |
compat, options: remove explicit template instantiation
It breaks on GNU and saves little space.
-rw-r--r-- | compat/simple-mat.hpp | 15 | ||||
-rw-r--r-- | options/value.hpp | 15 |
2 files changed, 0 insertions, 30 deletions
diff --git a/compat/simple-mat.hpp b/compat/simple-mat.hpp index 186043c0..fbd0a75e 100644 --- a/compat/simple-mat.hpp +++ b/compat/simple-mat.hpp @@ -273,18 +273,3 @@ Mat<num, h_, w_> operator*(const Mat<num, h_, w_>& self, num other) ret(j, i) = self(j, i) * other; return ret; } - -#ifdef OTR_SIMPLE_MAT_TEMPLATE_UNIT -# define OTR_SIMPLE_MAT_TEMPLATE_EXTERN -# define OTR_SIMPLE_MAT_TEMPLATE_DECLSPEC OPENTRACK_COMPAT_EXPORT -#else -# define OTR_SIMPLE_MAT_TEMPLATE_EXTERN extern -# define OTR_SIMPLE_MAT_TEMPLATE_DECLSPEC -#endif - -OTR_SIMPLE_MAT_TEMPLATE_EXTERN template class OTR_SIMPLE_MAT_TEMPLATE_DECLSPEC Mat<double, 6, 1>; -OTR_SIMPLE_MAT_TEMPLATE_EXTERN template class OTR_SIMPLE_MAT_TEMPLATE_DECLSPEC Mat<double, 3, 1>; -OTR_SIMPLE_MAT_TEMPLATE_EXTERN template class OTR_SIMPLE_MAT_TEMPLATE_DECLSPEC Mat<double, 1, 6>; -OTR_SIMPLE_MAT_TEMPLATE_EXTERN template class OTR_SIMPLE_MAT_TEMPLATE_DECLSPEC Mat<double, 1, 3>; -OTR_SIMPLE_MAT_TEMPLATE_EXTERN template class OTR_SIMPLE_MAT_TEMPLATE_DECLSPEC Mat<double, 3, 3>; - diff --git a/options/value.hpp b/options/value.hpp index 83529262..4904c370 100644 --- a/options/value.hpp +++ b/options/value.hpp @@ -225,19 +225,4 @@ private: const t def; }; -#ifdef OTR_OPTIONS_VALUE_TEMPLATE_UNIT -# define OTR_OPTIONS_VALUE_TEMPLATE_EXTERN -# define OTR_OPTIONS_VALUE_TEMPLATE_DECLSPEC OPENTRACK_OPTIONS_EXPORT -#else -# define OTR_OPTIONS_VALUE_TEMPLATE_EXTERN extern -# define OTR_OPTIONS_VALUE_TEMPLATE_DECLSPEC -#endif - -OTR_OPTIONS_VALUE_TEMPLATE_EXTERN template class OTR_OPTIONS_VALUE_TEMPLATE_DECLSPEC value<int>; -OTR_OPTIONS_VALUE_TEMPLATE_EXTERN template class OTR_OPTIONS_VALUE_TEMPLATE_DECLSPEC value<double>; -OTR_OPTIONS_VALUE_TEMPLATE_EXTERN template class OTR_OPTIONS_VALUE_TEMPLATE_DECLSPEC value<bool>; -OTR_OPTIONS_VALUE_TEMPLATE_EXTERN template class OTR_OPTIONS_VALUE_TEMPLATE_DECLSPEC value<QString>; -OTR_OPTIONS_VALUE_TEMPLATE_EXTERN template class OTR_OPTIONS_VALUE_TEMPLATE_DECLSPEC value<slider_value>; -OTR_OPTIONS_VALUE_TEMPLATE_EXTERN template class OTR_OPTIONS_VALUE_TEMPLATE_DECLSPEC value<QList<QPointF>>; - } // ns options |