fix example for multiple definitions

This commit is contained in:
Oliver Kowalke
2014-08-23 13:39:24 +02:00
parent 06145727ee
commit c15ffa7146
3 changed files with 31 additions and 13 deletions

View File

@@ -4,14 +4,7 @@
#include <boost/bind.hpp>
#include <boost/coroutine/all.hpp>
struct X
{
int i;
X( int i_) :
i( i_)
{}
};
#include "X.h"
typedef boost::coroutines::asymmetric_coroutine< X& >::pull_type pull_coro_t;
typedef boost::coroutines::asymmetric_coroutine< X& >::push_type push_coro_t;