Пример #1
0
 void add_item(const Quote& sale)
 { items.insert(std::shared_ptr<Quote>(sale.clone())); }
Пример #2
0
 // copy version
 void add_item(Quote const& item)
 {
   cout << "basket::add_item(Quote const&)" << endl;
   items_.insert(std::shared_ptr<Quote>(
         item.clone()));
 }