#include <string>
#include <iostream>
struct what
{
std::string s;
};
_declspec(noinline) void func(what& rwhat)
{
std::cout << rwhat.s;
}
int main()
{
func(what{"slkdjflsf"});
//func({"what"}); //doesn't work thought as temporary is implicitely built from init list
return 0;
}