I currently have a variadic function which takes an arbitrary number of arguments of arbitrary types (duh), however, I want to restrict the types to ones which are POD only, and also the same size or smaller than that of a void*.
The void* check was easy, I just did this:
static_assert(sizeof...(Args) <= sizeof(PVOID), "Size of types must be <= memsize.");
However I can’t work out how to do the same for std::is_pod.
Is this possible to do?
You can write a meta-function to determine if all are POD types:
then