From e6bfd12b95417a0fb7e62969ce3590a5e97122c2 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 9 May 2013 15:26:50 -0700 Subject: [PATCH] make public the singleton template to ensure it can be shared across shared library boundaries if the library is built with -fvisibility=hidden - refs #1826 --- include/mapnik/utils.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/mapnik/utils.hpp b/include/mapnik/utils.hpp index 24a5d3d54..01cf84ab8 100644 --- a/include/mapnik/utils.hpp +++ b/include/mapnik/utils.hpp @@ -23,6 +23,8 @@ #ifndef MAPNIK_UTILS_HPP #define MAPNIK_UTILS_HPP +#include + // boost #ifdef MAPNIK_THREADSAFE #include @@ -93,7 +95,7 @@ public: }; template class CreatePolicy=CreateStatic> class singleton + template class CreatePolicy=CreateStatic> class MAPNIK_DECL singleton { #ifdef __SUNPRO_CC /* Sun's C++ compiler will issue the following errors if CreatePolicy is used: