forked from boostorg/system
Test ::in_place_* for result specializations. Refs #115.
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
#include <boost/system.hpp>
|
#include <boost/system/result.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
template<class T, class U> void test( T const& t, U const& u )
|
template<class T, class U> void test( T const& t, U const& u )
|
||||||
@ -15,6 +15,8 @@ int main()
|
|||||||
using namespace boost::system;
|
using namespace boost::system;
|
||||||
|
|
||||||
test( result<int>::in_place_value, result<int>::in_place_error );
|
test( result<int>::in_place_value, result<int>::in_place_error );
|
||||||
|
test( result<void>::in_place_value, result<void>::in_place_error );
|
||||||
|
test( result<int&>::in_place_value, result<int&>::in_place_error );
|
||||||
|
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user