#include #include #include struct Foo { char foo[3] = {'f','o','o'}; char e = 42; char n = 42; char d = 0; }; int main() { auto f = std::make_unique(); std::string s{f->foo, 3}; std::cout << s << std::endl; std::cout << f->foo << std::endl; }