function_base.hpp:

- Don't try to implicitly convert a function pointer to a data pointer

stateless_test.cpp:
  - Don't use the deprecated syntax


[SVN r15499]
This commit is contained in:
Douglas Gregor
2002-09-24 17:28:58 +00:00
parent f9ae459b2d
commit 8b6f154891
2 changed files with 36 additions and 36 deletions

View File

@ -83,7 +83,7 @@ namespace boost {
any_pointer make_any_pointer(void (*f)()) any_pointer make_any_pointer(void (*f)())
{ {
any_pointer p; any_pointer p;
p.obj_ptr = f; p.func_ptr = f;
return p; return p;
} }

View File

@ -40,7 +40,7 @@ namespace boost {
int test_main(int, char*[]) int test_main(int, char*[])
{ {
boost::function<int, int, int> f; boost::function2<int, int, int> f;
f = stateless_integer_add(); f = stateless_integer_add();
return 0; return 0;