Skip to content

Compile- and run-time assertions for the construction of Ref<const>.

Reference issue

#2667 (closed)

What does this implement/fix?

Ref<const...> now asserts the success of its construction - which fails at run-time if it has copied the given expression into its member variable m_object, but the StrideType (possibly in combination with the expression's shape) does not support mapping m_object's contiguous memory layout. Whenever this is foreseeable, an assertion is triggered already at compile-time in this case, resulting in a compile error.

Additional information

Merge request reports

Loading