2
0
mirror of https://github.com/boostorg/context.git synced 2026-02-01 20:32:20 +00:00

move classes to namespace std

This commit is contained in:
Oliver Kowalke
2023-04-08 10:23:26 +02:00
parent d67f4bb6ce
commit 7e556147fa
44 changed files with 139 additions and 1142 deletions

View File

@@ -8,13 +8,11 @@
#include <iostream>
#include <list>
#include <boost/context/fiber_context.hpp>
namespace ctx = boost::context;
#include <boost/context/fiber_context>
int main() {
ctx::fiber_context f1, f2, f3;
f3 = ctx::fiber_context{[&](ctx::fiber_context && f)->ctx::fiber_context{
std::fiber_context f1, f2, f3;
f3 = std::fiber_context{[&](std::fiber_context && f)->std::fiber_context{
f2 = std::move( f);
for (;;) {
std::cout << "f3\n";
@@ -22,7 +20,7 @@ int main() {
}
return {};
}};
f2 = ctx::fiber_context{[&](ctx::fiber_context && f)->ctx::fiber_context{
f2 = std::fiber_context{[&](std::fiber_context && f)->std::fiber_context{
f1 = std::move( f);
for (;;) {
std::cout << "f2\n";
@@ -30,7 +28,7 @@ int main() {
}
return {};
}};
f1 = ctx::fiber_context{[&](ctx::fiber_context && /*main*/)->ctx::fiber_context{
f1 = std::fiber_context{[&](std::fiber_context && /*main*/)->std::fiber_context{
for (;;) {
std::cout << "f1\n";
f3 = std::move( f2).resume();