DoorKeeper/include/doorkeeper/implem/helpers.inl
King_DuckZ 701366bf86 Replace size_t with uint32_t for template parameter D
This fixes the build on 64-bit machines, where size_t and uint32_t from vector.hpp would mismatch.
2015-01-08 12:20:17 +01:00

15 lines
452 B
C++

namespace dk {
namespace implem {
///----------------------------------------------------------------------
///----------------------------------------------------------------------
template <uint32_t D>
CoordinateScalarType area (const Vector<CoordinateScalarType, D>& parVec) {
CoordinateScalarType retval(1);
for (size_t d = 0; d < D; ++d) {
retval *= parVec[d];
}
return retval;
}
} //namespake implem
} //namespake dk