Re[9]: ссылка на локальный вектор
От: uzhas Ниоткуда  
Дата: 16.05.16 11:07
Оценка:
Здравствуйте, _hum_, Вы писали:

__>читаем:

__>

__>Temporary object lifetime

__>Temporary objects are created in the following situations: binding a reference to a prvalue, returning a prvalue from a function, conversion that creates a prvalue, lambda expression, (since C++11) copy-initialization that requires conversion of the initializer, list-initialization that constructs an std::initializer_list, (since C++11) and reference-initialization to a different but convertible type or to a bitfield.


читаем внимательнее выделенное: different but convertible type
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.