aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/PlainObjectBase.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-10-25 20:45:26 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-10-25 20:45:26 -0400
commitbca18a13eaa568a675a1116a0de185100ebaf54f (patch)
treebaa7a7855b7d7ebfeb68b681e592862066588d1e /Eigen/src/Core/PlainObjectBase.h
parentd7e70edfb317aff931ce4ccad93111b3cb96fdb3 (diff)
The most important inline keyword ever? Without it, gcc failed to inline this function, which is called by all matrix constructors...
Diffstat (limited to 'Eigen/src/Core/PlainObjectBase.h')
-rw-r--r--Eigen/src/Core/PlainObjectBase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/PlainObjectBase.h b/Eigen/src/Core/PlainObjectBase.h
index cb28c5795..63dd8b767 100644
--- a/Eigen/src/Core/PlainObjectBase.h
+++ b/Eigen/src/Core/PlainObjectBase.h
@@ -35,7 +35,7 @@
namespace internal {
template<typename Index>
-void check_rows_cols_for_overflow(Index rows, Index cols)
+inline void check_rows_cols_for_overflow(Index rows, Index cols)
{
// http://hg.mozilla.org/mozilla-central/file/6c8a909977d3/xpcom/ds/CheckedInt.h#l242
// we assume Index is signed