diff --git a/tl_expected/include/tl_expected/expected.hpp b/tl_expected/include/tl_expected/expected.hpp index ae90975..e7a5411 100644 --- a/tl_expected/include/tl_expected/expected.hpp +++ b/tl_expected/include/tl_expected/expected.hpp @@ -16,6 +16,17 @@ #ifndef TL_EXPECTED_HPP #define TL_EXPECTED_HPP +#ifdef _WIN32 +#pragma message( \ + "tl_expected/expected.hpp is deprecated and will be removed by the ROS 2 Lyrical Luth release. \ + Use from libexpected-dev, or if the system header is not available.") // NOLINT +#else +#warning \ + "tl_expected/expected.hpp is deprecated and will be removed by the ROS 2 Lyrical Luth release. \ + Use from libexpected-dev, or if the system header is not available." // NOLINT +#endif + + #define TL_EXPECTED_VERSION_MAJOR 1 #define TL_EXPECTED_VERSION_MINOR 2 #define TL_EXPECTED_VERSION_PATCH 0