Skip to content

Commit 31f662e

Browse files
Move deprecation warning outside of include guards (#22)
1 parent de082e8 commit 31f662e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tl_expected/include/tl_expected/expected.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
// <http://creativecommons.org/publicdomain/zero/1.0/>.
1414
///
1515

16-
#ifndef TL_EXPECTED_HPP
17-
#define TL_EXPECTED_HPP
18-
1916
#ifdef _WIN32
2017
#pragma message( \
2118
"tl_expected/expected.hpp is deprecated and will be removed by the ROS 2 Lyrical Luth release. \
@@ -26,6 +23,8 @@
2623
Use <tl/expected.hpp> from libexpected-dev, or <rcpputils/tl_expected/expected.hpp> if the system header is not available." // NOLINT
2724
#endif
2825

26+
#ifndef TL_EXPECTED_HPP
27+
#define TL_EXPECTED_HPP
2928

3029
#define TL_EXPECTED_VERSION_MAJOR 1
3130
#define TL_EXPECTED_VERSION_MINOR 2

0 commit comments

Comments
 (0)