From b8d943ec27db189587f2c62189ec212ee55ed1d8 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 9 Oct 2003 05:00:38 +0000 Subject: [PATCH] Move to the "new" function<> syntax. He he. [SVN r20320] --- example/bind1st.cpp | 2 +- example/int_div.cpp | 2 +- example/sum_avg.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/bind1st.cpp b/example/bind1st.cpp index ccd8c8b..a7d23f4 100644 --- a/example/bind1st.cpp +++ b/example/bind1st.cpp @@ -23,7 +23,7 @@ struct X { int main() { - boost::function f; + boost::function f; X x(7); f = std::bind1st(std::mem_fun(&X::foo), &x); diff --git a/example/int_div.cpp b/example/int_div.cpp index 0560ab5..3812d15 100644 --- a/example/int_div.cpp +++ b/example/int_div.cpp @@ -17,7 +17,7 @@ struct int_div { int main() { - boost::function f; + boost::function f; f = int_div(); std::cout << f(5, 3) << std::endl; // 1.66667 diff --git a/example/sum_avg.cpp b/example/sum_avg.cpp index 6bfe2ba..8dba3e2 100644 --- a/example/sum_avg.cpp +++ b/example/sum_avg.cpp @@ -23,7 +23,7 @@ main() { // The second parameter should be int[], but some compilers (e.g., GCC) // complain about this - boost::function sum_avg; + boost::function sum_avg; sum_avg = &do_sum_avg;