From 1941a700a46c984bb75fadd687e1a430d97215da Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 11 Apr 2012 08:23:41 -0700 Subject: [PATCH] add compile time warning if building against proj < 4.8 --- src/projection.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/projection.cpp b/src/projection.cpp index 47885d0f0b..1776a22dba 100644 --- a/src/projection.cpp +++ b/src/projection.cpp @@ -33,19 +33,20 @@ namespace mapnik { #if defined(MAPNIK_THREADSAFE) && PJ_VERSION < 480 +#warning mapnik is building against < proj 4.8, reprojection will be faster if you use >= 4.8 boost::mutex projection::mutex_; #endif projection::projection(std::string const& params) : params_(params) { - init(); // + init(); } projection::projection(projection const& rhs) : params_(rhs.params_) { - init(); // + init(); } projection& projection::operator=(projection const& rhs) @@ -158,9 +159,9 @@ std::string projection::expanded() const return std::string(""); } -void projection::swap (projection& rhs) +void projection::swap(projection& rhs) { std::swap(params_,rhs.params_); - init (); + init(); } }