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:
@@ -21,7 +21,7 @@ mat
|
|||||||
, class = typename enable_if<is_mat<R> >::type
|
, class = typename enable_if<is_mat<R> >::type
|
||||||
#endif
|
#endif
|
||||||
>
|
>
|
||||||
operator R() const
|
BOOST_QVM_CONSTEXPR operator R() const
|
||||||
{
|
{
|
||||||
R r;
|
R r;
|
||||||
assign(r,*this);
|
assign(r,*this);
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ quat
|
|||||||
, class = typename enable_if<is_quat<R> >::type
|
, class = typename enable_if<is_quat<R> >::type
|
||||||
#endif
|
#endif
|
||||||
>
|
>
|
||||||
operator R() const
|
BOOST_QVM_CONSTEXPR operator R() const
|
||||||
{
|
{
|
||||||
R r;
|
R r;
|
||||||
assign(r,*this);
|
assign(r,*this);
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ vec
|
|||||||
, class = typename enable_if<is_vec<R> >::type
|
, class = typename enable_if<is_vec<R> >::type
|
||||||
#endif
|
#endif
|
||||||
>
|
>
|
||||||
operator R() const
|
BOOST_QVM_CONSTEXPR operator R() const
|
||||||
{
|
{
|
||||||
R r;
|
R r;
|
||||||
assign(r,*this);
|
assign(r,*this);
|
||||||
|
|||||||
Reference in New Issue
Block a user