From: Uwe Hermann Date: Thu, 8 Jun 2017 21:05:05 +0000 (+0200) Subject: Fix various -Wundefined-var-template clang warnings. X-Git-Tag: libsigrok-0.5.0~7 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=35334baa90dd7c68862ec25b58db0701a5802245;p=libsigrok.git Fix various -Wundefined-var-template clang warnings. This fixes bug #915. --- diff --git a/bindings/cxx/enums.py b/bindings/cxx/enums.py index a1577a06..3711334e 100644 --- a/bindings/cxx/enums.py +++ b/bindings/cxx/enums.py @@ -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 EnumValue<{classname}, enum {enumname}>::_values; + /** {brief} */ class SR_API {classname} : public EnumValue<{classname}, enum {enumname}> {{