#include <string>
#include <iostream>

struct AAA {
    std::string a, b;
};

AAA &getRef() {
    AAA aaa = {"the first item", "the second item"};
    return aaa;
} // 'aaa' is absolutely destroyed here, no doubt about it!

int main() {
    AAA &ref = getRef();
    std::cout << ref.a << ", " << ref.b << std::endl;
    
    return 0;
}