Skip to content

Commit 5e70e28

Browse files
Fix warning string
1 parent 17fa967 commit 5e70e28

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

parameter_traits/include/parameter_traits/parameter_traits.hpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@
3232
#include <rsl/algorithm.hpp>
3333
#include <tl_expected/expected.hpp>
3434

35-
#define PARAMETER_TRAITS_HEADER_DEPRECATION This header is obsolete, \
36-
please include "rsl/algorithm.hpp" for rsl::contains and rsl::is_unique, \
37-
and "tl_expected/expected.hpp" for tl::expected.
3835
#ifdef _MSC_VER
39-
#pragma message(PARAMETER_TRAITS_HEADER_DEPRECATION)
36+
#pragma message( \
37+
"This header is obsolete, \
38+
please include \"rsl/algorithm.hpp\" for rsl::contains and rsl::is_unique, \
39+
and \"tl_expected/expected.hpp\" for tl::expected.")
4040
#else
41-
#warning PARAMETER_TRAITS_HEADER_DEPRECATION
41+
#warning This header is obsolete, \
42+
please include "rsl/algorithm.hpp" for rsl::contains and rsl::is_unique, \
43+
and "tl_expected/expected.hpp" for tl::expected.
4244
#endif
4345

4446
namespace parameter_traits {

0 commit comments

Comments
 (0)