Skip to content

Commit

Permalink
Test ::in_place_* for result specializations. Refs #115.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Dec 15, 2023
1 parent 52220a0 commit 18edbf7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/result_in_place_use.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include <boost/system.hpp>
#include <boost/system/result.hpp>
#include <boost/core/lightweight_test.hpp>

template<class T, class U> void test( T const& t, U const& u )
Expand All @@ -15,6 +15,8 @@ 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();
}

0 comments on commit 18edbf7

Please sign in to comment.