Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5 ➡️ 3 - EnumIface: suppress deprecation warning (#540) #601

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/gz/common/EnumIface.hh
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ namespace ignition
/// std::cout << "Type++ Name[" << myTypeIface.Str(*i) << "]\n";
/// }
/// \verbatim
GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to include https://github.com/gazebosim/gz-cmake/blob/ign-cmake2/include/gz/utilities/SuppressWarning.hh and use the IGN prefix. Note that this version of gz-common didn't have a dependency on gz-utils. However, the warning suppression utilities are available in gz-cmake2.

template<typename Enum>
class EnumIterator
: std::iterator<std::bidirectional_iterator_tag, Enum>
Expand Down Expand Up @@ -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
Expand Down
Loading