What I'm setting up is a formatting API for logging and want to pass parameters like printf is doing.
"Jonathan Turkanis"
Tim Michals wrote:
I'm trying to figure out how would you format the IDL function for a general function like printf?
For example the function is printf( const char *fmt, ...)
How you format the IDL function? BOOST_IDL_FN1(formatMsg, const char *fmt)
Function with variable numbers of arguments, and non-member functions, aren't (yet) supported. In fact, supporting functions with variable number of arguments never occurred to me. Also, when non-member functions are supported, they will have to have at least one parameter type related to the interface being defined.
What's your intended use?
Best, Jonathan