mirror of
https://github.com/boostorg/function.git
synced 2025-07-21 16:42:07 +02:00
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:
@ -83,7 +83,7 @@ namespace boost {
|
||||
any_pointer make_any_pointer(void (*f)())
|
||||
{
|
||||
any_pointer p;
|
||||
p.obj_ptr = f;
|
||||
p.func_ptr = f;
|
||||
return p;
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ namespace boost {
|
||||
|
||||
int test_main(int, char*[])
|
||||
{
|
||||
boost::function<int, int, int> f;
|
||||
boost::function2<int, int, int> f;
|
||||
f = stateless_integer_add();
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user