
"Arkadiy Vertleyb" <vertleyb@hotmail.com> wrote in message news:d08fe8$mkc$1@sea.gmane.org... | "Thorsten Ottosen" <nesotto@cs.auc.dk> wrote | > "Arkadiy Vertleyb" <vertleyb@hotmail.com> wrote in message | > I don't get this. Surely one of the functions would be a better match than | > the others and hence called. | | How is | | namespace MyNamespace | { | template<class T> end(const T&); | } | | is better match than | | namespace YourNamespace | { | template<class T> end(const T&); | } | ? | | And now: | | MyNamespace::Foo<YourNamespace::Bar> obj; | end(obj); // ????? Why would any function but the primary template be taking a const T& param, that is, why don't your YourNamespace::end() refer to some class in YourNamespace? -Thorsten