On May 25, 2015 10:51:17 AM EDT, Niall Douglas
On 25 May 2015 at 8:27, Rob Stewart wrote:
In case you might want to know why a monadic return transport might be so useful as to be a whole new design idiom for C++ 11, try reading
https://svn.boost.org/trac/boost/wiki/BestPracticeHandbook#a8.DESIGN:Strongl....
Make the examples in that correct WRT shared_ptr. As written, the shared_ptrs will delete file handles rather than close them.
I would imagine destroying an open file handle would close it. Anyway, that really isn't important to the code examples given the topic, it was never mentioned what a handle_type is, I had an afio::async_io_handle in mind but it doesn't matter.
Your example calls ::open() and fd is an int. ___ Rob (Sent from my portable computation engine)