Boost logo

Boost :

From: Eelis van der Weegen (eelis_at_[hidden])
Date: 2004-12-11 11:03:16

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*>)'


Boost list run by bdawes at, gregod at, cpdaniel at, john at