2
0
mirror of https://github.com/boostorg/context.git synced 2026-01-23 17:32:16 +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

@@ -11,9 +11,7 @@
#include <libunwind.h>
#include <boost/context/fiber_context.hpp>
namespace ctx = boost::context;
#include <boost/context/fiber_context>
void backtrace() {
unw_cursor_t cursor;
@@ -45,13 +43,13 @@ void foo() {
bar();
}
ctx::fiber_context f1( ctx::fiber_context && c) {
std::fiber_context f1( std::fiber_context && c) {
foo();
return std::move( c);
}
int main() {
ctx::fiber_context{ f1 }.resume();
std::fiber_context{ f1 }.resume();
std::cout << "main: done" << std::endl;
return EXIT_SUCCESS;
}