Skip to content

Guard against misuse of AxisAlignedCubeGeometry constructor

Oliver Sander requested to merge guard-against-constructor-misuse into master

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 (closed)

Edited by Oliver Sander

Merge request reports

Loading