You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…added
* Replaced rvalue `dimensions_t` with plain value `dimensions_t` ctor (to be able to take lvalue references too)
* Added a `dim3` constructor (by-value)
Shouldn't it be a dim3& or a const dim3& like the other places using a dim3 with constexpr? Otherwise with MSVC I get the following error: a constexpr function cannot have a parameter of nonliteral type "dim3".
@hofstee : I believe MSVC is wrong; constexpr function can definitely have parameters of more complex types, as long as their constructors are constexpr. But let's do it like you suggest to also caster to MSVC's "sensibilities".
While overall_dimensions_t is a 3-dimension variable, with 3 size_t's, dim3 is not - it uses unsigned ints.
We should support construction using dim3's (but not the conversion back).
The text was updated successfully, but these errors were encountered: