|
Boost : |
From: Marco (mrcekets_at_[hidden])
Date: 2007-04-16 11:23:12
On Mon, 16 Apr 2007 16:33:23 +0200, Marco <mrcekets_at_[hidden]> wrote:
>
> Another question: given the following functions:
>
> // #1
> template< typename T >
> void f(T ) {}
>
> // #2
> template< typename T, typename... Args >
> void f(T, Args... ) {}
>
>
> the function call f(1,2) is it ambiguous ?
> if it isn't, which is the function called ?
> #1 because it's more specialized ? (only a guess)
>
sorry, I mean f(1), obviously f(1,2) it's not ambiguous at all !
Marco
-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk