468,513 Members | 1,874 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

List Parameters

Hi,

I try this code:

template <typename Tinline
T const& max(T const& a, T const& b)
{
return a<b?b:a;
}

template <typename T, ... listinline
T const& max(T const& a, T const& b, list const& x)
{
return max(a, max(b, x));
}
But it not compile.
I have this message:
"error: expected identifier before '...' token"

I saw this sample in book "c++ templates: the complete guide"
i use wxWidgets with gcc compiler.

Is this code legal? is it compile?
If no how use list parameters in template?

Thunks
Oct 21 '06 #1
0 773

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by ritchie | last post: by
5 posts views Thread by Vigneshwar Pilli via DotNetMonster.com | last post: by
5 posts views Thread by tshad | last post: by
reply views Thread by Atos | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.