C99 compound literals are not supported in C++. In many cases, list intialization provides an excellent alternative. However, they are not guaranteed not to heap-allocate memory.
Are there any convenient and portable alternatives for C++ code that needs to work entirely without heap allocations?