Closed xinyuli1204 closed 4 months ago
@xinyuli1204 Thanks for clarifying. I have request for changes.
Builder
class is designed to hold smart pointer to Builder::Impl
. This means Builder
object can be treated as a reference counted object. Following this philosophy, it is better to move dispose calls from Buidler::~Builder
into Buidler::Impl::~Impl
instead of using C++ reference for lower
function.
LGTM!
Builder should pass by reference to function lower otherwise it will destroy when lower() return