diff --git a/extent.cpp b/extent.cpp
index 2992aa43..0ff56eb2 100644
--- a/extent.cpp
+++ b/extent.cpp
@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with libgim. If not, see .
*
- * Copyright 2010-2012 Danny Robson
+ * Copyright 2010-2015 Danny Robson
*/
#include "extent.hpp"
@@ -113,15 +113,15 @@ namespace util {
//-----------------------------------------------------------------------------
template
std::ostream&
-operator<< (std::ostream &os, util::extent e) {
+util::operator<< (std::ostream &os, util::extent e) {
os << "[" << e.w << ", " << e.h << "]";
return os;
}
-template std::ostream& operator<< (std::ostream&, util::extent);
-template std::ostream& operator<< (std::ostream&, util::extent);
-template std::ostream& operator<< (std::ostream&, util::extent);
+template std::ostream& util::operator<< (std::ostream&, util::extent);
+template std::ostream& util::operator<< (std::ostream&, util::extent);
+template std::ostream& util::operator<< (std::ostream&, util::extent);
//-----------------------------------------------------------------------------
namespace util {
diff --git a/extent.hpp b/extent.hpp
index e36e75f8..866bb7ff 100644
--- a/extent.hpp
+++ b/extent.hpp
@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with libgim. If not, see .
*
- * Copyright 2010-2012 Danny Robson
+ * Copyright 2010-2015 Danny Robson
*/
#ifndef __UTIL_EXTENT_HPP
@@ -50,10 +50,13 @@ namespace util {
void sanity (void) const;
};
+
+ typedef extent extent2u;
+
+ template
+ std::ostream& operator<< (std::ostream&, util::extent);
}
-template
-std::ostream& operator<< (std::ostream&, util::extent);
#include "extent.ipp"