Skip to content
Snippets Groups Projects
  • Marco Biasini's avatar
    bde4f38d
    don't check Vec/Mat item access in C++ by default · bde4f38d
    Marco Biasini authored
    Some compilers (including gcc 4.2) seem to have difficulties to inline
    functions with exceptions, even though it would be possible to know at
    compile-time that the exceptions never get thrown.
    
    The boundary checked versions for item access for Vec/Mat classes are
    available as the VecX/MatX::At methods. The Python export has been
    adapted to use the At methods, so guarantee we never crash from Python.
    bde4f38d
    History
    don't check Vec/Mat item access in C++ by default
    Marco Biasini authored
    Some compilers (including gcc 4.2) seem to have difficulties to inline
    functions with exceptions, even though it would be possible to know at
    compile-time that the exceptions never get thrown.
    
    The boundary checked versions for item access for Vec/Mat classes are
    available as the VecX/MatX::At methods. The Python export has been
    adapted to use the At methods, so guarantee we never crash from Python.