Skip to content

Commit

Permalink
Fix visiblity for linux: move explicit instanciations to the header file
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Oct 31, 2023
1 parent beac11e commit 9e609a3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/gz/math/MovingWindowFilter.hh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@ namespace gz
using MovingWindowFilterVector3f = MovingWindowFilter<Vector3f>;
using MovingWindowFilterVector3d = MovingWindowFilter<Vector3d>;
}


/// The template explicit instanciations that does not use fundamental types
/// (like Vector*) needs to be placed in this header file.
template class GZ_MATH_VISIBLE MovingWindowFilter<int>;
template class GZ_MATH_VISIBLE MovingWindowFilter<float>;
template class GZ_MATH_VISIBLE MovingWindowFilter<double>;
template class GZ_MATH_VISIBLE MovingWindowFilter<gz::math::Vector3i>;
template class GZ_MATH_VISIBLE MovingWindowFilter<gz::math::Vector3f>;
template class GZ_MATH_VISIBLE MovingWindowFilter<gz::math::Vector3d>;

} // namespace math
} // namespace gz
#endif

0 comments on commit 9e609a3

Please sign in to comment.