Fix building with GCC 14

Co-authored-by: Tom Hughes <tom@compton.nu>
This commit is contained in:
David Hummel 2024-05-21 07:46:18 -07:00
parent eb99057a47
commit 2ef5003283
2 changed files with 4 additions and 2 deletions

View file

@ -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))

View file

@ -39,7 +39,7 @@
namespace mapnik {
template<typename T>
class CreateUsingNew
class MAPNIK_DECL CreateUsingNew
{
public:
static T* create() { return new T; }
@ -47,7 +47,7 @@ class CreateUsingNew
};
template<typename T>
class CreateStatic
class MAPNIK_DECL CreateStatic
{
private:
using storage_type = typename std::aligned_storage<sizeof(T), alignof(T)>::type;