diff --git a/vector.cpp b/vector.cpp index 3b2a2d86..7fce95cb 100644 --- a/vector.cpp +++ b/vector.cpp @@ -412,6 +412,16 @@ util::operator<< (std::ostream &os, const util::vector &v) { } +template std::ostream& util::operator<< (std::ostream&, const util::vector<1,size_t> &v); +template std::ostream& util::operator<< (std::ostream&, const util::vector<2,size_t> &v); +template std::ostream& util::operator<< (std::ostream&, const util::vector<3,size_t> &v); +template std::ostream& util::operator<< (std::ostream&, const util::vector<4,size_t> &v); + +template std::ostream& util::operator<< (std::ostream&, const util::vector<1,long> &v); +template std::ostream& util::operator<< (std::ostream&, const util::vector<2,long> &v); +template std::ostream& util::operator<< (std::ostream&, const util::vector<3,long> &v); +template std::ostream& util::operator<< (std::ostream&, const util::vector<4,long> &v); + template std::ostream& util::operator<< (std::ostream&, const util::vector<1,float> &v); template std::ostream& util::operator<< (std::ostream&, const util::vector<2,float> &v); template std::ostream& util::operator<< (std::ostream&, const util::vector<3,float> &v); diff --git a/vector.hpp b/vector.hpp index 764d09a9..9f6f72db 100644 --- a/vector.hpp +++ b/vector.hpp @@ -100,6 +100,9 @@ namespace util { const json::node& operator>> (const json::node&, vector&); // convenience typedefs + typedef vector<2,size_t> vector2u; + typedef vector<2,long> vector2i; + typedef vector<2,float> vector2f; typedef vector<3,float> vector3f; typedef vector<4,float> vector4f;