Skip to content
Archive of entries posted on 24th April 2010

Calling function via void* pointer with arguments contained in std::container in a C++03 way

Recently I posted a technique that can be used to call functions, passed as raw void* pointers with arguments contained in an std::vector, so that the arguments are correctly transformed from container to normal C/C++–style arguments list. The method proposed was quite generalized and pretty type–safe. But it had one limitation: it required C++0x compiler [...]