summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--lib/fields.cc2
-rw-r--r--lib/message.cc2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/fields.cc b/lib/fields.cc
index d494098..91fbc41 100644
--- a/lib/fields.cc
+++ b/lib/fields.cc
@@ -1,17 +1,19 @@
1#include <opkele/types.h> 1#include <opkele/types.h>
2#include <opkele/exception.h> 2#include <opkele/exception.h>
3#include <opkele/util.h> 3#include <opkele/util.h>
4#include <algorithm>
4 5
5namespace opkele { 6namespace opkele {
7 using std::for_each;
6 using std::unary_function; 8 using std::unary_function;
7 9
8 struct __om_copier : public unary_function<const string&,void> { 10 struct __om_copier : public unary_function<const string&,void> {
9 public: 11 public:
10 const basic_fields& from; 12 const basic_fields& from;
11 basic_fields& to; 13 basic_fields& to;
12 14
13 __om_copier(basic_fields& t,const basic_fields& f) 15 __om_copier(basic_fields& t,const basic_fields& f)
14 : from(f), to(t) { } 16 : from(f), to(t) { }
15 17
16 result_type operator()(argument_type f) { 18 result_type operator()(argument_type f) {
17 to.set_field(f,from.get_field(f)); } 19 to.set_field(f,from.get_field(f)); }
diff --git a/lib/message.cc b/lib/message.cc
index b2324b7..524946a 100644
--- a/lib/message.cc
+++ b/lib/message.cc
@@ -1,13 +1,15 @@
1#include <cassert> 1#include <cassert>
2#include <algorithm>
3
2#include <opkele/types.h> 4#include <opkele/types.h>
3#include <opkele/exception.h> 5#include <opkele/exception.h>
4#include <opkele/util.h> 6#include <opkele/util.h>
5#include <opkele/debug.h> 7#include <opkele/debug.h>
6 8
7#include "config.h" 9#include "config.h"
8 10
9namespace opkele { 11namespace opkele {
10 using std::input_iterator_tag; 12 using std::input_iterator_tag;
11 using std::unary_function; 13 using std::unary_function;
12 14
13 15