Merge pull request #4456 from hummeltech/GCC14
Fix building with GCC 14
This commit is contained in:
commit
5e7b478627
2 changed files with 10 additions and 0 deletions
|
@ -26,6 +26,8 @@
|
|||
#include <mapnik/geometry/polygon.hpp>
|
||||
#include <boost/fusion/include/adapt_struct.hpp>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
BOOST_FUSION_ADAPT_STRUCT(mapnik::geometry::point<double>, (double, x)(double, y))
|
||||
|
||||
BOOST_FUSION_ADAPT_STRUCT(mapnik::geometry::point<std::int64_t>, (std::int64_t, x)(std::int64_t, y))
|
||||
|
|
|
@ -39,7 +39,11 @@
|
|||
namespace mapnik {
|
||||
|
||||
template<typename T>
|
||||
#ifdef _WIN32
|
||||
class CreateUsingNew
|
||||
#else
|
||||
class MAPNIK_DECL CreateUsingNew
|
||||
#endif
|
||||
{
|
||||
public:
|
||||
static T* create() { return new T; }
|
||||
|
@ -47,7 +51,11 @@ class CreateUsingNew
|
|||
};
|
||||
|
||||
template<typename T>
|
||||
#ifdef _WIN32
|
||||
class CreateStatic
|
||||
#else
|
||||
class MAPNIK_DECL CreateStatic
|
||||
#endif
|
||||
{
|
||||
private:
|
||||
using storage_type = typename std::aligned_storage<sizeof(T), alignof(T)>::type;
|
||||
|
|
Loading…
Reference in a new issue