Skip to content

Commit a554eb0

Browse files
Kojoleyolk
authored andcommitted
Move library include to the top
This helps ensure that library inclusion is self sustainable
1 parent 25b1690 commit a554eb0

20 files changed

+40
-22
lines changed

example/asymmetric/chaining.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <iostream>
810
#include <iomanip>
911
#include <string>
1012
#include <cctype>
1113
#include <sstream>
1214

1315
#include <boost/bind.hpp>
14-
#include <boost/coroutine/all.hpp>
1516
#include <boost/foreach.hpp>
1617

1718
typedef boost::coroutines::asymmetric_coroutine<std::string> coro_t;

example/asymmetric/echo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911

1012
#include <boost/bind.hpp>
11-
#include <boost/coroutine/all.hpp>
1213

1314
typedef boost::coroutines::asymmetric_coroutine< void >::pull_type pull_coro_t;
1415
typedef boost::coroutines::asymmetric_coroutine< void >::push_type push_coro_t;

example/asymmetric/exception.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911
#include <stdexcept>
1012
#include <string>
1113

1214
#include <boost/bind.hpp>
13-
#include <boost/coroutine/all.hpp>
1415
#include <boost/throw_exception.hpp>
1516

1617
typedef boost::coroutines::asymmetric_coroutine< int >::pull_type pull_coro_t;

example/asymmetric/fibonacci.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911

1012
#include <boost/range.hpp>
11-
#include <boost/coroutine/all.hpp>
1213

1314
void fibonacci( boost::coroutines::asymmetric_coroutine< int >::push_type & sink)
1415
{

example/asymmetric/layout.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <iostream>
810
#include <iomanip>
911
#include <vector>
@@ -12,7 +14,6 @@
1214

1315
#include <boost/assign/list_of.hpp>
1416
#include <boost/bind.hpp>
15-
#include <boost/coroutine/all.hpp>
1617
#include <boost/range.hpp>
1718

1819
struct FinalEOL

example/asymmetric/parallel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911

1012
#include <boost/bind.hpp>
11-
#include <boost/coroutine/all.hpp>
1213

1314
void first( boost::coroutines::asymmetric_coroutine< void >::push_type & sink)
1415
{

example/asymmetric/power.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstdlib>
810
#include <iostream>
911

1012
#include <boost/bind.hpp>
1113
#include <boost/foreach.hpp>
1214
#include <boost/range.hpp>
13-
#include <boost/coroutine/all.hpp>
1415

1516
void power( boost::coroutines::asymmetric_coroutine< int >::push_type & sink, int number, int exponent)
1617
{

example/asymmetric/same_fringe.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <cstddef>
810
#include <cstdlib>
911
#include <iostream>
@@ -14,7 +16,6 @@
1416
#include <boost/bind.hpp>
1517
#include <boost/range.hpp>
1618
#include <boost/shared_ptr.hpp>
17-
#include <boost/coroutine/all.hpp>
1819

1920
struct node
2021
{

example/asymmetric/segmented_stack.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
#include <boost/coroutine/all.hpp>
8+
79
#include <iostream>
810

911
#include <boost/assert.hpp>
1012
#include <boost/config.hpp>
11-
#include <boost/coroutine/all.hpp>
1213

1314
int count = 384;
1415

example/asymmetric/simple.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
#include <boost/coroutine/all.hpp>
2+
13
#include <cstdlib>
24
#include <iostream>
35

46
#include <boost/bind.hpp>
5-
#include <boost/coroutine/all.hpp>
67

78
#include "X.h"
89

0 commit comments

Comments
 (0)