Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vqsubu16
18 days ago
|
parent
|
context
|
favorite
| on:
Understanding C++ Ownership System
Why there is the calling of "read(buffer.get());" in the first example (inside of the 'while' loop)?
It is a 'char *buffer' type, unless I'm mistaken raw pointers don't have methods/member functions?
dundarious
18 days ago
[–]
copy-paste error given the next example uses a smart ptr type that has a .get() to get the actual pointer.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
It is a 'char *buffer' type, unless I'm mistaken raw pointers don't have methods/member functions?