I have a function template like this:
template <class ...A>
do_something()
{
// i'd like to do something to each A::var, where var has static storage
}
I can't use Boost.MPL
. Can you please show how to do this without recursion?
EDIT: These days (c++17), I'd do it like this:
template <class ...A>
do_something()
{
((std::cout << A::var << std::endl), ...);
};