From c303cb573cb44bba377332e9534512dce44646c5 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Fri, 15 Aug 2025 06:10:54 +0100 Subject: [PATCH] Add constexpr to quat,mat and vec This is required for constexpr assignment which requires converting to a user defined type. --- include/boost/qvm/mat.hpp | 2 +- include/boost/qvm/quat.hpp | 2 +- include/boost/qvm/vec.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/qvm/mat.hpp b/include/boost/qvm/mat.hpp index 9fc118d..889c263 100644 --- a/include/boost/qvm/mat.hpp +++ b/include/boost/qvm/mat.hpp @@ -21,7 +21,7 @@ mat , class = typename enable_if >::type #endif > - operator R() const + BOOST_QVM_CONSTEXPR operator R() const { R r; assign(r,*this); diff --git a/include/boost/qvm/quat.hpp b/include/boost/qvm/quat.hpp index 867ff69..4ee4069 100644 --- a/include/boost/qvm/quat.hpp +++ b/include/boost/qvm/quat.hpp @@ -21,7 +21,7 @@ quat , class = typename enable_if >::type #endif > - operator R() const + BOOST_QVM_CONSTEXPR operator R() const { R r; assign(r,*this); diff --git a/include/boost/qvm/vec.hpp b/include/boost/qvm/vec.hpp index 6e5cb53..8adc003 100644 --- a/include/boost/qvm/vec.hpp +++ b/include/boost/qvm/vec.hpp @@ -21,7 +21,7 @@ vec , class = typename enable_if >::type #endif > - operator R() const + BOOST_QVM_CONSTEXPR operator R() const { R r; assign(r,*this);