mirror of
https://github.com/boostorg/system.git
synced 2025-05-12 05:31:49 +00:00
23 lines
668 B
C++
23 lines
668 B
C++
// Copyright 2023 Peter Dimov.
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// https://www.boost.org/LICENSE_1_0.txt
|
|
|
|
#include <boost/system/result.hpp>
|
|
#include <boost/core/lightweight_test.hpp>
|
|
|
|
template<class T, class U> void test( T const& t, U const& u )
|
|
{
|
|
BOOST_TEST_NE( static_cast<void const*>( &t ), static_cast<void const*>( &u ) );
|
|
}
|
|
|
|
int main()
|
|
{
|
|
using namespace boost::system;
|
|
|
|
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();
|
|
}
|