Fix various -Wundefined-var-template clang warnings.

This fixes bug #915.
This commit is contained in:
Uwe Hermann 2017-06-08 23:05:05 +02:00
parent e3e1f20c7f
commit 35334baa90
1 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,8 @@ print("namespace sigrok {", file=header)
# Template for beginning of class declaration and public members.
header_public_template = """
template<> const SR_API std::map<const enum {enumname}, const {classname} * const> EnumValue<{classname}, enum {enumname}>::_values;
/** {brief} */
class SR_API {classname} : public EnumValue<{classname}, enum {enumname}>
{{