Workaround nbcc+msvc compiler bug

This commit is contained in:
Eugene Zhulenev
2018-11-02 14:48:28 -07:00
parent 9d318b92c6
commit 118520f04a
2 changed files with 12 additions and 4 deletions

View File

@@ -39,6 +39,12 @@ inline Index get_runtime_reshape_size(AutoSize_t /*size*/, Index other, Index to
return total/other;
}
template <int Flags, int Order>
struct get_compiletime_reshape_order
{
enum { value = Order==AutoOrder ? Flags & RowMajorBit : Order };
};
}
} // end namespace Eigen