Skip to content

Commit f8cc8ed

Browse files
authored
There is no realy good reason to make the template class instatiation in an extern file. (#9)
To clearify the build output it will no be made in the src file.
1 parent 1271000 commit f8cc8ed

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

src/detail/BicubicSplines.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,3 +289,6 @@ template <typename T> T BicubicSplines<T>::double_prime(T x0, T x1) const {
289289
x0);
290290
}
291291
} // namespace cubic_splines
292+
293+
template class cubic_splines::BicubicSplines<double>;
294+
template class cubic_splines::BicubicSplines<float>;

src/detail/BicubicSplines_imp.cxx

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/detail/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
target_sources(CubicInterpolation PRIVATE
22
detail/Axis.cxx
33
detail/BicubicSplines.cxx
4-
detail/BicubicSplines_imp.cxx
54
detail/CubicSplines.cxx
6-
detail/CubicSplines_imp.cxx
75
detail/InterpolantBuilder.cxx
86
detail/Interpolant.cxx
97
)

src/detail/CubicSplines.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,7 @@ template <typename T> T CubicSplines<T>::prime(T x) const {
101101
template <typename T> T CubicSplines<T>::double_prime(T x) const {
102102
return data->spline.double_prime(x);
103103
};
104-
105104
} // namespace cubic_splines
105+
106+
template class cubic_splines::CubicSplines<float>;
107+
template class cubic_splines::CubicSplines<double>;

src/detail/CubicSplines_imp.cxx

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)