mirror of
https://github.com/boostorg/coroutine.git
synced 2026-02-08 22:53:00 +00:00
fix exit code of examples
This commit is contained in:
@@ -164,6 +164,10 @@ int main()
|
||||
main_tasks.pop(task);
|
||||
task();
|
||||
}
|
||||
|
||||
cout << "Done" << std::endl;
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
// __________________________________________________________________ //
|
||||
|
||||
@@ -23,6 +23,10 @@ int main()
|
||||
});
|
||||
auto crange = boost::make_iterator_range(boost::begin(c), boost::end(c));
|
||||
for (auto n : crange) {
|
||||
std::cout << n << std::endl;
|
||||
std::cout << n << " ";
|
||||
}
|
||||
|
||||
std::cout << "\nDone" << std::endl;
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -46,5 +46,7 @@ int main(int argc,char* argv[]){
|
||||
|
||||
std::copy(std::begin(words),std::end(words),boost::begin(writer));
|
||||
|
||||
return 0;
|
||||
std::cout << "\nDone" << std::endl;
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user