Boost logo

Boost :

Subject: Re: [boost] [next gen future-promise] What to call the monadic return type?
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2015-05-25 18:26:48


On 25 May 2015 at 15:29, Rob Stewart wrote:

> > 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.

Sorry, I must be missing something really obvious here.

I was assuming that handle_type consumes a valid fd and takes
ownership of it. Are not the examples correct then, or if a
particular example (of the four) is wrong, can you say which one?

Niall

-- 
ned Productions Limited Consulting
http://www.nedproductions.biz/ 
http://ie.linkedin.com/in/nialldouglas/



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk