mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-20 14:42:21 +00:00
fix fiber-exceptions
This commit is contained in:
@@ -21,7 +21,7 @@ barrier::barrier( std::size_t initial) :
|
||||
initial_{ initial },
|
||||
current_{ initial_ } {
|
||||
if ( 0 == initial) {
|
||||
throw invalid_argument( static_cast< int >( std::errc::invalid_argument),
|
||||
throw invalid_argument( std::make_error_code( std::errc::invalid_argument),
|
||||
"boost fiber: zero initial barrier count");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user