2
0
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:
Oliver Kowalke
2015-12-26 19:52:21 +01:00
parent f4925c6b08
commit 056a681459
11 changed files with 75 additions and 140 deletions

View File

@@ -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");
}
}