29 Nov
2014
29 Nov
'14
2:16 p.m.
On Wed, Nov 26, 2014 at 9:28 PM, Josh Juran
I use POSIX I/O calls frequently. I adapted Lisa Lippincott and Marshall Clow's work on Nitrogen to create a library called poseven, based on the same 'nucleus' core library. p7::fd_t is an enum type for a file descriptor, and n::ownedp7::fd_t and n::sharedp7::fd_t are smart resources that work like unique_ptr and shared_ptr (loosely speaking) respectively. Much of it is about a decade old, early in my exposure to generic programming, though just recently I added p7::coprocess.
Interesting. Why are you using an enum to store the fd? Do you think it'd be useful to move parts of this functionality into Boost? -- Olaf