
11 Sep
2008
11 Sep
'08
3:05 p.m.
On Thu, Sep 11, 2008 at 07:53:26AM -0700, Steven Watanabe wrote:
AMDG
Zeljko Vrba wrote:
template<typename K> inline typename id_t<K>::type& inc2(typename id_t<K>::type &id
The compiler cannot deduce K. If you call inc2<KEY>(m) it should work.
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?