*** empty log message ***

[SVN r2312]
This commit is contained in:
Daniel Wallin
2004-09-13 10:21:22 +00:00
parent 018bb60d47
commit e219b65cf3
2 changed files with 28 additions and 0 deletions

View File

@@ -15,4 +15,8 @@ import testing ;
: [ run named_params_test.cpp ] : [ run named_params_test.cpp ]
[ run named_params_sfinae.cpp ] [ run named_params_sfinae.cpp ]
; ;
test-suite "result_check"
: [ compile result_check_test.cpp ]
;
} }

24
test/result_check_test.cpp Executable file
View 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&> >));
}