2
0
mirror of https://github.com/boostorg/qvm.git synced 2026-01-19 04:22:16 +00:00

Add constexpr to quat,mat and vec

This is required for constexpr assignment which requires converting to a user defined type.
This commit is contained in:
Joshua Nelson
2025-08-15 06:10:54 +01:00
parent 98bb6f3ae6
commit c303cb573c
3 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ mat
, class = typename enable_if<is_mat<R> >::type
#endif
>
operator R() const
BOOST_QVM_CONSTEXPR operator R() const
{
R r;
assign(r,*this);

View File

@@ -21,7 +21,7 @@ quat
, class = typename enable_if<is_quat<R> >::type
#endif
>
operator R() const
BOOST_QVM_CONSTEXPR operator R() const
{
R r;
assign(r,*this);

View File

@@ -21,7 +21,7 @@ vec
, class = typename enable_if<is_vec<R> >::type
#endif
>
operator R() const
BOOST_QVM_CONSTEXPR operator R() const
{
R r;
assign(r,*this);