if you pass "A" to a function you're passing a const char pointer

if you pass 'A' you're passing a char literal

I forgot about this silliness and just spent half an hour on it because I thought I was making mistakes with C++ std:string, not being super familiar with the ways C++ might fuck with me

Reply to this note

Please Login to reply.

Discussion

No replies yet.