mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
Fix broken constructor
This commit is contained in:
parent
debaa6b54d
commit
b9c7c7cf6e
@ -48,9 +48,7 @@ template <typename T, size_t N> class Vec {
|
||||
* @param rvalue Source vector to copy from
|
||||
*/
|
||||
template <typename S> Vec(std::enable_if_t<std::is_convertible_v<S, T>, const Vec<S, N>> &rvalue) {
|
||||
Vec lvalue;
|
||||
for (unsigned i = 0; i < N; i++) { lvalue[i] = static_cast<T>(rvalue[i]); }
|
||||
return lvalue;
|
||||
for (unsigned i = 0; i < N; i++) { at(i) = static_cast<T>(rvalue[i]); }
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user