Pe*******@gmail.com wrote:
I quickly searched the group.
Like the post said, it is not possible to specify indefinite number of
arguments.
http://groups.google.com/group/comp....guments&rnum=1
But I'm wonder with the help of boost, can this take be done?
With or without boost, you can only mimick ab indefinite number of
arguments. The simplest solution is passing a 'vector' of values. This
can be extended to support more than just one type and also to look more
like a function call. But then you are still really passing a fixed
number of arguments (one 'vector' for example).
So strictly speaking, if you have a true indefinite number of
arguments, you cannot possibly determine how many you really have,
without specifying that.
hth
--
jb
(reply address in rot13, unscramble first)