Fix ODR violations.

This commit is contained in:
Antonio Sánchez
2022-02-04 19:01:07 +00:00
committed by Rasmus Munk Larsen
parent 18b50458b6
commit cafeadffef
5 changed files with 9 additions and 21 deletions

View File

@@ -30,8 +30,6 @@ namespace Eigen {
namespace internal {
namespace {
// Note: result is undefined if val == 0
template <typename T>
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
@@ -137,8 +135,6 @@ namespace {
#endif
}
};
}
template <typename T, bool div_gt_one = false>
struct TensorIntDivisor {
@@ -254,7 +250,7 @@ private:
template <typename T, bool div_gt_one>
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T operator / (const T& numerator, const TensorIntDivisor<T, div_gt_one>& divisor) {
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T operator / (const T& numerator, const TensorIntDivisor<T, div_gt_one>& divisor) {
return divisor.divide(numerator);
}