title: How to construct a c++ fstream from a POSIX file descriptor?
body: <p>I'm basically looking for a C++ version of fdopen().  I did a bit of research on this and it is one of those things that seems like it should be easy, but turns out to be very complicated.  Am I missing something in this belief (i.e. it really is easy)?  If not, is there a good library out there somewhere to handle this?</p>
  
  <p>EDIT: Moved my example solution to a separate answer.</p>