+ add get_pointer impl for std::shared_ptr<T>
when building agaist boost version < 1.53
This commit is contained in:
parent
a3c329a6f8
commit
c0461280be
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue