
11 Sep
2008
11 Sep
'08
3:13 p.m.
________________________________________ De: boost-users-bounces@lists.boost.org [boost-users-bounces@lists.boost.org] En nombre de Zeljko Vrba [zvrba@ifi.uio.no] Enviado el: jueves, 11 de septiembre de 2008 17:05 Para: boost-users@lists.boost.org Asunto: Re: [Boost-users] Puzzled: compiler can't find a match for functioncall
Indeed it works. Could you please explain why the compiler can deduce K in BF::map<BF::pair<K, int> > , but not in typename id_t<K>::type?
Suppose that id_t<K1>::type == id_t<K2>::type == int (for instance). If we pass int, how can the compiler figure out whether it's K1 or K2 that has to be deduced? Joaquín M López Muñoz Telefónica, Investigación y Desarrollo