2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-01-31 20:22:15 +00:00
This commit is contained in:
Emil Dotchevski
2020-12-08 14:36:26 -08:00
parent 6c43185d51
commit e9eb0323c5
3 changed files with 17 additions and 5 deletions

View File

@@ -1002,7 +1002,6 @@ namespace boost { namespace leaf {
#define BOOST_LEAF_TMP BOOST_LEAF_TOKEN_PASTE2(boost_leaf_tmp_, __LINE__)
#define BOOST_LEAF_ASSIGN(v,r)\
static_assert(::boost::leaf::is_result_type<typename std::decay<decltype(r)>::type>::value, "The BOOST_LEAF_ASSIGN macro requires a result type as the second argument");\
auto && BOOST_LEAF_TMP = r;\
if( !BOOST_LEAF_TMP )\
return BOOST_LEAF_TMP.error();\
@@ -1012,7 +1011,6 @@ namespace boost { namespace leaf {
BOOST_LEAF_ASSIGN(auto v, r)
#define BOOST_LEAF_CHECK(r)\
static_assert(::boost::leaf::is_result_type<typename std::decay<decltype(r)>::type>::value, "BOOST_LEAF_CHECK requires a result type");\
auto && BOOST_LEAF_TMP = r;\
if( BOOST_LEAF_TMP )\
;\

View File

@@ -33,7 +33,6 @@
#define BOOST_LEAF_TMP BOOST_LEAF_TOKEN_PASTE2(boost_leaf_tmp_, __LINE__)
#define BOOST_LEAF_ASSIGN(v,r)\
static_assert(::boost::leaf::is_result_type<typename std::decay<decltype(r)>::type>::value, "The BOOST_LEAF_ASSIGN macro requires a result type as the second argument");\
auto && BOOST_LEAF_TMP = r;\
if( !BOOST_LEAF_TMP )\
return BOOST_LEAF_TMP.error();\
@@ -43,7 +42,6 @@
BOOST_LEAF_ASSIGN(auto v, r)
#define BOOST_LEAF_CHECK(r)\
static_assert(::boost::leaf::is_result_type<typename std::decay<decltype(r)>::type>::value, "BOOST_LEAF_CHECK requires a result type");\
auto && BOOST_LEAF_TMP = r;\
if( BOOST_LEAF_TMP )\
;\