shared_ptr(std::auto_ptr<Y> & r)
От: Aera Беларусь  
Дата: 11.10.04 03:37
Оценка:

template<class Y> shared_ptr(std::auto_ptr<Y> & r);

[This constructor takes a the source auto_ptr by reference and not by value, and cannot accept auto_ptr temporaries. This is by design, as the constructor offers the strong guarantee; an rvalue reference would solve this problem, too.]


Я не совсем понимаю что за гарантия имеется здесь ввиду. Почему нельзя было использовать передачу по значению?
... << RSDN@Home 1.1.4 beta 3 rev. 185>>
--
RedApe
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.