@daniel I see your borrow checker and raise you a reference to the owned object of a unique_ptr.
auto _d = std::make_unique<double>();auto& d = *_d;