Open rjhuijsman opened 2 years ago
To avoid usage mistakes like that in https://github.com/3rdparty/eventuals-grpc/issues/81 it would be helpful to have an API that prevents "holding it wrong".
Our current hypothesis is that we could have ServerBuilder::RegisterService take a borrowed_ptr instead of a raw pointer.
ServerBuilder::RegisterService
borrowed_ptr
To avoid usage mistakes like that in https://github.com/3rdparty/eventuals-grpc/issues/81 it would be helpful to have an API that prevents "holding it wrong".
Our current hypothesis is that we could have
ServerBuilder::RegisterService
take aborrowed_ptr
instead of a raw pointer.