|
|
От: |
uzhas
|
|
| Дата: | 16.05.16 11:07 | ||
| Оценка: | |||
__>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.