Skip to content
Snippets Groups Projects
Commit 4546b4bd authored by Oliver Sander's avatar Oliver Sander
Browse files

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: #25
parent d1954974
No related branches found
No related tags found
1 merge request!150Guard against misuse of AxisAlignedCubeGeometry constructor
Pipeline #30040 passed