logoalt Hacker News

vqsubu16yesterday at 10:38 PM1 replyview on HN

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?


Replies

dundariousyesterday at 10:40 PM

copy-paste error given the next example uses a smart ptr type that has a .get() to get the actual pointer.