Ignore:
Timestamp:
Mar 20, 2019, 3:42:24 PM (3 years ago)
Author:
tdelisle <tdelisle@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
709e0e0
Parents:
13b1b1d
Message:

Clean existing coroutines using std::experimental::suspend_never and fixed Format coroutines to use RAII

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/papers/concurrency/examples/Fib.cpp

    r13b1b1d r571bf75  
    1 #include "base.hpp"
    2 
    31#include <algorithm>
     2#include <iostream>
    43#include <iterator>
    54#include <vector>
     5
     6#include <experimental/coroutine>
    67
    78template<typename T>
     
    1415                }
    1516
    16                 auto initial_suspend() { return suspend_always(); }
    17                 auto final_suspend()   { return suspend_always(); }
     17                auto initial_suspend() { return std::experimental::suspend_always(); }
     18                auto final_suspend()   { return std::experimental::suspend_always(); }
    1819
    1920                void return_value(T value) {
     
    2324                auto yield_value(T value) {
    2425                        _value = value;
    25                         return suspend_always();
     26                        return std::experimental::suspend_always();
    2627                }
    2728
Note: See TracChangeset for help on using the changeset viewer.