The most important inline keyword ever? Without it, gcc failed to inline this function, which is called by all matrix constructors...

This commit is contained in:
Benoit Jacob 2011-10-25 20:45:26 -04:00
parent d7e70edfb3
commit bca18a13ea

View File

@ -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