$NetBSD: patch-rec__channel__rec.cc,v 1.1 2013/06/26 15:52:22 joerg Exp $ --- rec_channel_rec.cc.orig 2010-09-21 16:22:09.000000000 +0000 +++ rec_channel_rec.cc @@ -27,7 +27,7 @@ using namespace std; #include "namespaces.hh" map d_get32bitpointers; map d_get64bitpointers; -map > d_get32bitmembers; +map > d_get32bitmembers; void addGetStat(const string& name, const uint32_t* place) { @@ -37,7 +37,7 @@ void addGetStat(const string& name, cons { d_get64bitpointers[name]=place; } -void addGetStat(const string& name, function f ) +void addGetStat(const string& name, boost::function f ) { d_get32bitmembers[name]=f; } @@ -61,7 +61,7 @@ string getAllStats() string ret; pair the32bits; pair the64bits; - pair > the32bitmembers; + pair > the32bitmembers; BOOST_FOREACH(the32bits, d_get32bitpointers) { ret += the32bits.first + "\t" + lexical_cast(*the32bits.second) + "\n"; }