Skip to content

Commit

Permalink
gha
Browse files Browse the repository at this point in the history
  • Loading branch information
zajo committed Dec 10, 2023
1 parent c4b0462 commit 6b0f642
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions include/boost/leaf/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,17 @@
////////////////////////////////////////

#ifndef BOOST_LEAF_NODISCARD
# if __cplusplus >= 201703L
# define BOOST_LEAF_NODISCARD [[nodiscard]]
# else
# define BOOST_LEAF_NODISCARD
# if defined(__has_cpp_attribute)
# if __has_cpp_attribute(nodiscard)
# if __cplusplus >= 201703L
# define BOOST_LEAF_NODISCARD [[nodiscard]]
# endif
# endif
# endif
#endif
#ifndef BOOST_LEAF_NODISCARD
# define BOOST_LEAF_NODISCARD
#endif

////////////////////////////////////////

Expand Down

0 comments on commit 6b0f642

Please sign in to comment.