Skip to content

Commit

Permalink
Add missing BOOST_OUTCOME_ASSERT macro, clearly I was not thinking
Browse files Browse the repository at this point in the history
straight on Saturday in those previous commits.
  • Loading branch information
ned14 committed Dec 18, 2023
1 parent 893c2d0 commit 7289e16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions boostify/include/boost/outcome/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ exported Boost.Outcome v2 namespace.

#include <cstdint> // for uint32_t etc
#include <initializer_list>
#include <iosfwd> // for future serialisation
#include <new> // for placement in moves etc
#include <iosfwd> // for future serialisation
#include <new> // for placement in moves etc
#include <type_traits>

#ifndef BOOST_OUTCOME_USE_STD_IN_PLACE_TYPE
Expand Down Expand Up @@ -200,6 +200,11 @@ BOOST_OUTCOME_V2_NAMESPACE_END
#define BOOST_OUTCOME_ADDRESS_OF(...) std::addressof(__VA_ARGS__)
#endif

#ifndef BOOST_OUTCOME_ASSERT
#include <cassert>
#define BOOST_OUTCOME_ASSERT(...) assert(__VA_ARGS__)
#endif

#ifndef BOOST_OUTCOME_TRIVIAL_ABI
#if defined(STANDARDESE_IS_IN_THE_HOUSE) || __clang_major__ >= 7
//! Defined to be `[[clang::trivial_abi]]` when on a new enough clang compiler. Usually automatic, can be overriden.
Expand Down
6 changes: 3 additions & 3 deletions include/outcome/detail/revision.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ Distributed under the Boost Software License, Version 1.0.
*/

// Note the second line of this file must ALWAYS be the git SHA, third line ALWAYS the git SHA update time
#define OUTCOME_PREVIOUS_COMMIT_REF 645500fe31c7ffc14299af9651b2ae1c9d6741c9
#define OUTCOME_PREVIOUS_COMMIT_DATE "2023-12-16 20:11:33 +00:00"
#define OUTCOME_PREVIOUS_COMMIT_UNIQUE 645500fe
#define OUTCOME_PREVIOUS_COMMIT_REF 893c2d0fb8f00b7afe8daf4a6f2782f3d11fc1ae
#define OUTCOME_PREVIOUS_COMMIT_DATE "2023-12-16 22:34:16 +00:00"
#define OUTCOME_PREVIOUS_COMMIT_UNIQUE 893c2d0f

0 comments on commit 7289e16

Please sign in to comment.