mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
add explicit instantiation declarations to DEFINE_ENUM macro to fix -Wundefined-var-template warnings.
This commit is contained in:
parent
fe5c4bb978
commit
b392b8214e
@ -281,7 +281,10 @@ operator<<(std::ostream & os, const mapnik::enumeration<ENUM, THE_MAX> & e)
|
||||
using name = enumeration<e, e ## _MAX>;
|
||||
#else
|
||||
#define DEFINE_ENUM( name, e) \
|
||||
using name = enumeration<e, e ## _MAX>;
|
||||
using name = enumeration<e, e ## _MAX>; \
|
||||
template <> MAPNIK_DECL const char ** name ::our_strings_; \
|
||||
template <> MAPNIK_DECL std::string name ::our_name_; \
|
||||
template <> MAPNIK_DECL bool name ::our_verified_flag_;
|
||||
#endif
|
||||
|
||||
/** Helper macro. Runs the verify_mapnik_enum() method during static initialization.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user