mirror of
https://github.com/boostorg/utility.git
synced 2025-08-02 14:24:30 +02:00
*** empty log message ***
[SVN r2312]
This commit is contained in:
@@ -15,4 +15,8 @@ import testing ;
|
||||
: [ run named_params_test.cpp ]
|
||||
[ run named_params_sfinae.cpp ]
|
||||
;
|
||||
|
||||
test-suite "result_check"
|
||||
: [ compile result_check_test.cpp ]
|
||||
;
|
||||
}
|
||||
|
24
test/result_check_test.cpp
Executable file
24
test/result_check_test.cpp
Executable file
@@ -0,0 +1,24 @@
|
||||
// Copyright Daniel Wallin 2004. Use, modification and distribution is
|
||||
// subject to the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <boost/result_check.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
|
||||
BOOST_RESULT_CHECK(2, add, operator+, _1 + _2)
|
||||
|
||||
struct X
|
||||
{
|
||||
};
|
||||
|
||||
X operator+(X const&, X const&);
|
||||
X& operator+(X&, X&);
|
||||
|
||||
int main()
|
||||
{
|
||||
using namespace boost;
|
||||
|
||||
BOOST_MPL_ASSERT((check_add<X const&, X const&, is_same<mpl::_, X> >));
|
||||
BOOST_MPL_ASSERT((check_add<X&, X&, is_same<mpl::_, X&> >));
|
||||
}
|
||||
|
Reference in New Issue
Block a user