mirror of
https://github.com/boostorg/system.git
synced 2026-07-06 16:30:52 +02:00
Change operator* and operator-> to throw instead of having a precondition
This commit is contained in:
@@ -74,6 +74,15 @@ result<void> fw0()
|
||||
return {};
|
||||
}
|
||||
|
||||
struct E2
|
||||
{
|
||||
};
|
||||
|
||||
BOOST_NORETURN void throw_exception_from_error( E const &, boost::source_location const& )
|
||||
{
|
||||
throw E2();
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user