-
- Downloads
Guard against misuse of AxisAlignedCubeGeometry constructor
The AxisAlignedCubeGeometry has always had a constructor that was always intended to be used with dim==coorddim only. However, this precondition was never checked anywhere, which could lead to strange bugs. This patch introduces a static_assert that fails at compile time if the dim==coorddim precondition is not met. BUG: core/dune-geometry#25
parent
d1954974
No related branches found
No related tags found
Showing
- CHANGELOG.md 6 additions, 0 deletionsCHANGELOG.md
- dune/geometry/axisalignedcubegeometry.hh 1 addition, 0 deletionsdune/geometry/axisalignedcubegeometry.hh
- dune/geometry/refinement/hcube.cc 7 additions, 4 deletionsdune/geometry/refinement/hcube.cc
- dune/geometry/test/test-axisalignedcubegeometry.cc 5 additions, 2 deletionsdune/geometry/test/test-axisalignedcubegeometry.cc
Please register or sign in to comment