mirror of
https://github.com/boostorg/function.git
synced 2025-07-24 01:47:15 +02:00
function_base.hpp:
- make make_any_pointer inline [SVN r15500]
This commit is contained in:
@ -66,21 +66,21 @@ namespace boost {
|
||||
char data[1];
|
||||
};
|
||||
|
||||
any_pointer make_any_pointer(void* o)
|
||||
inline any_pointer make_any_pointer(void* o)
|
||||
{
|
||||
any_pointer p;
|
||||
p.obj_ptr = o;
|
||||
return p;
|
||||
}
|
||||
|
||||
any_pointer make_any_pointer(const void* o)
|
||||
inline any_pointer make_any_pointer(const void* o)
|
||||
{
|
||||
any_pointer p;
|
||||
p.const_obj_ptr = o;
|
||||
return p;
|
||||
}
|
||||
|
||||
any_pointer make_any_pointer(void (*f)())
|
||||
inline any_pointer make_any_pointer(void (*f)())
|
||||
{
|
||||
any_pointer p;
|
||||
p.func_ptr = f;
|
||||
|
Reference in New Issue
Block a user