|
|
|
|
|
by gpderetta
5 days ago
|
|
With guaranteed RVO you could do something like this (pseudo-C): struct FooBase { ... }
fn make_foo_base(...) -> FooBase
struct Foo { base : FooBase; ... }
fn make_foo(args...) -> Foo {
return { .base = make_foo_base(...), ... }
}
|
|