Fix compilation
Former-commit-id: d5ac6bb73615f7c9b068c1de2037dfeddc5c1b45
This commit is contained in:
parent
ad55ff159b
commit
192fccc634
|
|
@ -913,7 +913,7 @@ namespace Nz
|
|||
|
||||
template<typename Block, class Allocator>
|
||||
template<bool BadCall>
|
||||
void* Bitset::Bit::operator&() const
|
||||
void* Bitset<Block, Allocator>::Bit::operator&() const
|
||||
{
|
||||
// The template is necessary to make it fail only when used
|
||||
static_assert(!BadCall, "It is impossible to take the address of a bit in a bitset");
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ namespace Nz
|
|||
*/
|
||||
|
||||
template<typename T>
|
||||
T* SparsePtr::operator->() const
|
||||
T* SparsePtr<T>::operator->() const
|
||||
{
|
||||
return reinterpret_cast<T*>(m_ptr);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1786,7 +1786,7 @@ std::ostream& operator<<(std::ostream& out, const Nz::Matrix4<T>& matrix)
|
|||
*/
|
||||
|
||||
template<typename T>
|
||||
Nz::Matrix4<T> operator*(T scale, const Nz::Matrix4& matrix)
|
||||
Nz::Matrix4<T> operator*(T scale, const Nz::Matrix4<T>& matrix)
|
||||
{
|
||||
return matrix * scale;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -989,7 +989,7 @@ std::ostream& operator<<(std::ostream& out, const Nz::Vector2<T>& vec)
|
|||
*/
|
||||
|
||||
template<typename T>
|
||||
Nz::Vector2<T> operator*(T scale, const Nz::Vector2& vec)
|
||||
Nz::Vector2<T> operator*(T scale, const Nz::Vector2<T>& vec)
|
||||
{
|
||||
return Nz::Vector2<T>(scale * vec.x, scale * vec.y);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1300,7 +1300,7 @@ std::ostream& operator<<(std::ostream& out, const Nz::Vector3<T>& vec)
|
|||
*/
|
||||
|
||||
template<typename T>
|
||||
Nz::Vector3<T> operator*(T scale, const Nz::Vector3& vec)
|
||||
Nz::Vector3<T> operator*(T scale, const Nz::Vector3<T>& vec)
|
||||
{
|
||||
return Nz::Vector3<T>(scale * vec.x, scale * vec.y, scale * vec.z);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1038,7 +1038,7 @@ std::ostream& operator<<(std::ostream& out, const Nz::Vector4<T>& vec)
|
|||
|
||||
|
||||
template<typename T>
|
||||
Nz::Vector4<T> operator*(T scale, const Nz::Vector4& vec)
|
||||
Nz::Vector4<T> operator*(T scale, const Nz::Vector4<T>& vec)
|
||||
{
|
||||
return Nz::Vector4<T>(scale * vec.x, scale * vec.y, scale * vec.z, scale * vec.w);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue