From fb9f7019ab57cb4585e1ec31204d58f2d6055781 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 b95ce1b39..8ac91e300 100644 --- a/include/gz/common/EnumIface.hh +++ b/include/gz/common/EnumIface.hh @@ -140,6 +140,7 @@ namespace ignition /// std::cout << "Type++ Name[" << myTypeIface.Str(*i) << "]\n"; /// } /// \verbatim + GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION template class EnumIterator : std::iterator @@ -217,6 +218,7 @@ namespace ignition /// member value ever used. private: Enum c; }; + GZ_UTILS_WARN_RESUME__DEPRECATED_DECLARATION /// \brief Equality operator /// \param[in] _e1 First iterator