+ add get_pointer impl for std::shared_ptr<T>

when building agaist boost version < 1.53
This commit is contained in:
artemp 2013-10-01 15:08:46 +01:00
parent a3c329a6f8
commit c0461280be

View file

@ -44,6 +44,16 @@ using mapnik::memory_datasource;
using mapnik::layer_descriptor;
using mapnik::attribute_descriptor;
#if BOOST_VERSION < 105300
namespace boost
{
template<class T> T * get_pointer( std::shared_ptr<T> const& p )
{
return p.get();
}
}
#endif
namespace
{
//user-friendly wrapper that uses Python dictionary