mirror of
https://github.com/boostorg/system.git
synced 2025-10-05 04:00:57 +02:00
21 lines
517 B
C++
21 lines
517 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.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 );
|
||
|
|
||
|
return boost::report_errors();
|
||
|
}
|