From cppreference
Temporary objects are created .. in the following situations:
- conversion that creates a prvalue (including T(a,b,c) and T{})
When this can happen? (examples will be appreciated)
What does they mean by "including T(a,b,c) and T{}"?
Do static_cast<T>(e)
, const_cast<T>(e)
, dynamic_cast<T>(e)
and reinterpret_cast<T>(e)
conversions are always evaluate to prvalue?