
13 Jun
2007
13 Jun
'07
11:27 p.m.
Daveus, Fredrik wrote:
template<typename T> A(const T& t) : m_map(t) { }
template<typename It> A(It first, It last) : m_map(first, last) { }
I guess neither is guaranteed to work. It seems required to force copy-initialization: template< class InitList > explicit A(InitList const& l) : m_map(static_cast<map_type const&>(l)) { } Regards, -- Shunsuke Sogame