Fix warning about unused typedef.
This commit is contained in:
parent
0c78771c3e
commit
d9ac0531b3
1 changed files with 12 additions and 0 deletions
|
@ -360,7 +360,10 @@ namespace vwr {
|
|||
|
||||
template <typename V1, typename V2>
|
||||
inline Vec<typename std::common_type<V1, V2>::type> operator+ (const Vec<V1>& parLeft, const Vec<V2>& parRight) {
|
||||
#if defined(VWR_STATIC_CAST_RESULTS)
|
||||
typedef typename VectorWrapperInfo<typename std::common_type<V1, V2>::type>::scalar_type scalar_type;
|
||||
#endif
|
||||
|
||||
static_assert(static_cast<int>(VectorWrapperInfo<V1>::dimensions) == static_cast<int>(VectorWrapperInfo<V2>::dimensions), "Dimensions mismatch");
|
||||
Vec<typename std::common_type<V1, V2>::type> retval;
|
||||
for (int z = 0; z < VectorWrapperInfo<V1>::dimensions; ++z) {
|
||||
|
@ -374,7 +377,10 @@ namespace vwr {
|
|||
}
|
||||
template <typename V1, typename V2>
|
||||
inline Vec<typename std::common_type<V1, V2>::type> operator- (const Vec<V1>& parLeft, const Vec<V2>& parRight) {
|
||||
#if defined(VWR_STATIC_CAST_RESULTS)
|
||||
typedef typename VectorWrapperInfo<typename std::common_type<V1, V2>::type>::scalar_type scalar_type;
|
||||
#endif
|
||||
|
||||
static_assert(static_cast<int>(VectorWrapperInfo<V1>::dimensions) == static_cast<int>(VectorWrapperInfo<V2>::dimensions), "Dimensions mismatch");
|
||||
Vec<typename std::common_type<V1, V2>::type> retval;
|
||||
for (int z = 0; z < VectorWrapperInfo<V1>::dimensions; ++z) {
|
||||
|
@ -388,7 +394,10 @@ namespace vwr {
|
|||
}
|
||||
template <typename V1, typename V2>
|
||||
inline Vec<typename std::common_type<V1, V2>::type> operator* (const Vec<V1>& parLeft, const Vec<V2>& parRight) {
|
||||
#if defined(VWR_STATIC_CAST_RESULTS)
|
||||
typedef typename VectorWrapperInfo<typename std::common_type<V1, V2>::type>::scalar_type scalar_type;
|
||||
#endif
|
||||
|
||||
static_assert(static_cast<int>(VectorWrapperInfo<V1>::dimensions) == static_cast<int>(VectorWrapperInfo<V2>::dimensions), "Dimensions mismatch");
|
||||
Vec<typename std::common_type<V1, V2>::type> retval;
|
||||
for (int z = 0; z < VectorWrapperInfo<V1>::dimensions; ++z) {
|
||||
|
@ -402,7 +411,10 @@ namespace vwr {
|
|||
}
|
||||
template <typename V1, typename V2>
|
||||
inline Vec<typename std::common_type<V1, V2>::type> operator/ (const Vec<V1>& parLeft, const Vec<V2>& parRight) {
|
||||
#if defined(VWR_STATIC_CAST_RESULTS)
|
||||
typedef typename VectorWrapperInfo<typename std::common_type<V1, V2>::type>::scalar_type scalar_type;
|
||||
#endif
|
||||
|
||||
static_assert(static_cast<int>(VectorWrapperInfo<V1>::dimensions) == static_cast<int>(VectorWrapperInfo<V2>::dimensions), "Dimensions mismatch");
|
||||
Vec<typename std::common_type<V1, V2>::type> retval;
|
||||
for (int z = 0; z < VectorWrapperInfo<V1>::dimensions; ++z) {
|
||||
|
|
Loading…
Reference in a new issue