add explicit instantiation declarations to DEFINE_ENUM macro to fix -Wundefined-var-template warnings.
This commit is contained in:
parent
fe5c4bb978
commit
b392b8214e
1 changed files with 4 additions and 1 deletions
|
@ -281,7 +281,10 @@ operator<<(std::ostream & os, const mapnik::enumeration<ENUM, THE_MAX> & e)
|
||||||
using name = enumeration<e, e ## _MAX>;
|
using name = enumeration<e, e ## _MAX>;
|
||||||
#else
|
#else
|
||||||
#define DEFINE_ENUM( name, e) \
|
#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
|
#endif
|
||||||
|
|
||||||
/** Helper macro. Runs the verify_mapnik_enum() method during static initialization.
|
/** Helper macro. Runs the verify_mapnik_enum() method during static initialization.
|
||||||
|
|
Loading…
Reference in a new issue