mirror of
https://github.com/boostorg/leaf.git
synced 2026-01-31 20:22:15 +00:00
Issue #16
This commit is contained in:
@@ -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 )\
|
||||
;\
|
||||
|
||||
@@ -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 )\
|
||||
;\
|
||||
|
||||
Reference in New Issue
Block a user