Boost logo

Boost Users :

Subject: [Boost-users] mpl / preprocessor question
From: Zachary Turner (divisortheory_at_[hidden])
Date: 2009-06-28 16:03:34


Is there a way, using some combination of boost preprocessor and mpl,
that I can write a class

template<class T, int n>
class foo
{
public:

    void foo(T arg1, T arg2, ..., T argn);
};

In other words, generate a function that requires n arguments where n
is a template parameter?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net