From a6480f972c5997d732cc43a2d2658dc6d3fc949b Mon Sep 17 00:00:00 2001 From: Jim Easterbrook Date: Tue, 5 Oct 2021 09:21:17 +0100 Subject: [PATCH] Hide "static constexpr auto" from SWIG SWIG can't parse "static constexpr auto" at present. As there's no need to SWIG private class members simply hiding the expression is all that's needed. --- include/exiv2/datasets.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/exiv2/datasets.hpp b/include/exiv2/datasets.hpp index 02bad185..b45928e8 100644 --- a/include/exiv2/datasets.hpp +++ b/include/exiv2/datasets.hpp @@ -332,8 +332,9 @@ namespace Exiv2 { IptcKey* clone_() const override; // DATA +#ifndef SWIG static constexpr auto familyName_ = "Iptc"; - +#endif uint16_t tag_; //!< Tag value uint16_t record_; //!< Record value std::string key_; //!< Key