mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
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
This commit is contained in:
parent
36bdde82e7
commit
e6bfd12b95
@ -23,6 +23,8 @@
|
||||
#ifndef MAPNIK_UTILS_HPP
|
||||
#define MAPNIK_UTILS_HPP
|
||||
|
||||
#include <mapnik/config.hpp>
|
||||
|
||||
// boost
|
||||
#ifdef MAPNIK_THREADSAFE
|
||||
#include <boost/thread/mutex.hpp>
|
||||
@ -93,7 +95,7 @@ public:
|
||||
};
|
||||
|
||||
template <typename T,
|
||||
template <typename U> class CreatePolicy=CreateStatic> class singleton
|
||||
template <typename U> class CreatePolicy=CreateStatic> class MAPNIK_DECL singleton
|
||||
{
|
||||
#ifdef __SUNPRO_CC
|
||||
/* Sun's C++ compiler will issue the following errors if CreatePolicy<T> is used:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user