Boost logo

Boost :

From: David B. Held (dheld_at_[hidden])
Date: 2004-03-28 05:59:54


"Stefan Slapeta" <stefan_nospam__at_[hidden]> wrote in message
news:c469ba$ggf$1_at_sea.gmane.org...
> [...]
> Which f should be called here?
> [...]

If I recall correctly, normal functions are always considered before
template functions during overload resolution. I guess the question
is whether const char* == char[10] for the purposes of overload
resolution. I think it does, so I believe the first one should be called.
Unfortunately, I don't have my copy of C++ Templates handy, so I
can't look it up.

Dave

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.581 / Virus Database: 368 - Release Date: 2/9/2004

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk