Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



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: