[test][util][ipower] make ::ipower function inline

This commit is contained in:
Menelaos Karavelas
2014-08-08 20:32:44 +03:00
parent 4444dd1824
commit d22c1ba1a4

View File

@@ -32,7 +32,7 @@ namespace bg = boost::geometry;
// this is the function implemented with MPL (in non-recursive form)
template <typename T>
T ipower(const T& x, std::size_t n)
inline T ipower(const T& x, std::size_t n)
{
T z(1);
if ( n == 0 ) { return z; }