K
Kith Kanan
In a recent thread "Why is overloading operator. (member operator)
forbidden", someone wrote a code like the following:
template <typename R, typename... Argtypes>
class gen_send {
private:
string funcname;
public:
R &operator()(Argtypes... arguments) {
// serialize and send
// wait for return value, return value
}
};
Is that legal? I mean, is it legal to do the following:
template<typename T, typename... ARGS>
void foo();
Does that mean that there could be many template parameters? If so,
how could I know how many template parameters were added? By template
specialization?
Thanks in advance,
KK.
forbidden", someone wrote a code like the following:
template <typename R, typename... Argtypes>
class gen_send {
private:
string funcname;
public:
R &operator()(Argtypes... arguments) {
// serialize and send
// wait for return value, return value
}
};
Is that legal? I mean, is it legal to do the following:
template<typename T, typename... ARGS>
void foo();
Does that mean that there could be many template parameters? If so,
how could I know how many template parameters were added? By template
specialization?
Thanks in advance,
KK.