passing a boost.array to a c function, and boost.System

2 Feb
2009
2 Feb
'09
8:11 a.m.
Hi list: I have a c function EnumProcesses in windows, and waswondering: 1. How can I pass a boost.array to this function, I need to pass the undedrlying array, not the boost.array class. 2. Does boost.system suppor the retrieval of operating system process in an stl-complient way, i.e using stl containers and allowing boost.Foreach to iterate over them. Cheers Sean.

2 Feb
2 Feb
8:38 a.m.
On Mon, Feb 02, 2009 at 08:11:12AM -0000, Sean Farrow wrote:
1. How can I pass a boost.array to this function, I need to pass the undedrlying array, not the boost.array class.
Obviously, f(&x[0]) works for any container x that stores elements contiguously. Furthermore, documentation mentions the c_array() method as well as the elems data member.
5864
Age (days ago)
5864
Last active (days ago)
1 comments
2 participants
participants (2)
-
Sean Farrow
-
Zeljko Vrba