
11 Dec
2004
11 Dec
'04
4:03 p.m.
And here's another snippet that fails to compile: #include <boost/smart_container/ptr_vector.hpp> #include <boost/smart_container/ptr_map.hpp> struct S {}; void f () { typedef boost::ptr_vector<S> V; typedef boost::ptr_map<int, S> M; V v1; V v2 (v1.clone()); // ok, taken from Example 3 ( // "Copy-semantics of smart containers") M m1; M m2 (m1.clone()); // error: no matching function for call to ` // std::map<...>::map(std::allocator<S*>)' } Eelis