Workaround for Windows builds with GCC 14 patches
This commit is contained in:
parent
2ef5003283
commit
0526c603d4
1 changed files with 8 additions and 0 deletions
|
@ -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 MAPNIK_DECL 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