What are the best ways to wrap C function and function pointer in C++?
<p>I'm working on a project with openGL, and I want to wrap all the C function, function pointers with a higher level of abstraction using C++ STL and boost. I checked <code>boost::function</code>, but it was designed to work with functor instead of function pointers. I wonder if there is a C++ idiom help to wrap C function calls instead of using it globally. Any idea?</p>

<p>Thanks,<br>
Chan</p>
