Update lazyvec / vec api as well as rect are mostly constexpr now
This commit is contained in:
@@ -25,24 +25,24 @@ SOFTWARE.
|
||||
|
||||
constexpr std::string_view _op_template = R"text(
|
||||
template <typename T1>
|
||||
vec{0}<T>& operator{1}=(T1 v) {{
|
||||
constexpr vec{0}<T>& operator{1}=(T1 v) {{
|
||||
{2}
|
||||
return *this;
|
||||
}}
|
||||
|
||||
template <typename T1>
|
||||
vec{0}<T>& operator{1}=(const vec{0}<T1>& v) {{
|
||||
constexpr vec{0}<T>& operator{1}=(const vec{0}<T1>& v) {{
|
||||
{3}
|
||||
return *this;
|
||||
}}
|
||||
|
||||
template <typename T1>
|
||||
vec{0}<T> operator{1}(T1 v) const {{
|
||||
constexpr vec{0}<T> operator{1}(T1 v) const {{
|
||||
return vec{0}<T>({4});
|
||||
}}
|
||||
|
||||
template <typename T1>
|
||||
vec{0}<T> operator{1}(const vec{0}<T1>& v) const {{
|
||||
constexpr vec{0}<T> operator{1}(const vec{0}<T1>& v) const {{
|
||||
return vec{0}<T>({5});
|
||||
}}
|
||||
)text";
|
||||
|
||||
Reference in New Issue
Block a user