-
Notifications
You must be signed in to change notification settings - Fork 493
std::unique_ptr should not be part of the Arduino facing class #93
Comments
So I would propose leaving the {get,set,..}Ptr() calls as is but change the return type to be a standard pointer and include comments on all of them that the caller is responsible for the memory. As a client I see value in having these calls as well, it is the natural c/c++ way to implement things like:
|
I'm saying this mainly because of what I read on:
Arduino folks might also not be familiar with using |
Maybe we need to find something simpler for Streaming like you suggested before since the lifecycle is different from regular other request/response interaction. Something like.
|
Ya I think this may work into the larger issue of redesigning the API like On Fri, Apr 22, 2016, 4:47 PM Johan Euphrosine notifications@github.com
|
Yes, that's pretty much the conclusion I came to with the transport impl: So maybe we should put that on the backburner until I submit the PR for the transport stuff. |
Closing this now that we have the arduino wrapper. |
Follow up #90
Since it's unusual for arduino developer to use the stl.
The text was updated successfully, but these errors were encountered: