[repost] > So you could write: > > const SomeData& Case1::GetSomeData()const > { > return SomeData(myInternalRep); > } Yeah that is the problem: you can't return a temporary/rvalue by reference. To do that kind of stuff the getter should return by value.