From 1e1c34bcd8d994f42748a4d7843914436e26c76e Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Sat, 7 Oct 2023 22:31:37 -0700 Subject: [PATCH] EnumIface: suppress deprecation warning (#540) The EnumIterator inherits from std::iterator, which has been deprecated in c++17. There is a fix in gz-common6 but it breaks API, so it can't be merged to Garden. So just suppress the deprecation warning in Garden. Signed-off-by: Steve Peters --- include/gz/common/EnumIface.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/gz/common/EnumIface.hh b/include/gz/common/EnumIface.hh index f29b7897..d56fc299 100644 --- a/include/gz/common/EnumIface.hh +++ b/include/gz/common/EnumIface.hh @@ -142,6 +142,7 @@ namespace ignition /// std::cout << "Type++ Name[" << myTypeIface.Str(*i) << "]\n"; /// } /// \verbatim + GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION template class EnumIterator : std::iterator @@ -219,6 +220,7 @@ namespace ignition /// member value ever used. private: Enum c; }; + GZ_UTILS_WARN_RESUME__DEPRECATED_DECLARATION /// \brief Equality operator /// \param[in] _e1 First iterator