Skip to content

Commit c303cb5

Browse files
committed
Add constexpr to quat,mat and vec
This is required for constexpr assignment which requires converting to a user defined type.
1 parent 98bb6f3 commit c303cb5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/boost/qvm/mat.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mat
2121
, class = typename enable_if<is_mat<R> >::type
2222
#endif
2323
>
24-
operator R() const
24+
BOOST_QVM_CONSTEXPR operator R() const
2525
{
2626
R r;
2727
assign(r,*this);

include/boost/qvm/quat.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ quat
2121
, class = typename enable_if<is_quat<R> >::type
2222
#endif
2323
>
24-
operator R() const
24+
BOOST_QVM_CONSTEXPR operator R() const
2525
{
2626
R r;
2727
assign(r,*this);

include/boost/qvm/vec.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ vec
2121
, class = typename enable_if<is_vec<R> >::type
2222
#endif
2323
>
24-
operator R() const
24+
BOOST_QVM_CONSTEXPR operator R() const
2525
{
2626
R r;
2727
assign(r,*this);

0 commit comments

Comments
 (0)