Tag Archives: design

Eric Niebler: out parameters, move semantics, and stateful algorithms This post from Eric, inspired by a prompt from Andrei Alexcandrescu, examines the interface of std::getline appraising its usability and performance. Eric looks at a few different designs, in particular those … Continue reading

Link | Posted on by | Tagged , , , , , , | Leave a comment

Don’t couple streams with devices

Originally posted on Growing up:
A couple of weeks ago, a friend of mine coded an output stream that outputted strings through Win32 OutputDebugString function (you can use DebugView to monitor these kind of traces). His implementation had two main problems:…

Posted in Uncategorized | Tagged , , | Leave a comment