Print to the console the specified function pointer, v, formatted as a hexadecimal integer. On some platforms (notably Windows), a function pointer is treated differently from an object pointer, and the compiler will not be able to determine which void * overload of debugprint should be used for a function pointer. Therefore an overload of debugprint is provided specifically for function pointers. Because the type signature of a function pointer varies with its return type as well as with its argument list, a template function is used, to provide matches for all return types.
Synopsis
Declared in <bsls_bsltestutil.h>
template<class RESULT>
void
debugprint(RESULT(* v)());
Created with MrDocs