[C++-sig] Re: How to extract a sublist from a list in C++ ?
dave at boost-consulting.com
Wed Dec 8 19:10:14 CET 2004
PJ Durai wrote:
> I couldnt figure out the following bit.
> Say I am passing a list of lists. [ [a, b] , [c,d]] to a method in a C++
> In the C++ class,
> void ParseList (list lst)
> object o = lst;
> // how do I conver 'o' to a list again?
> list l1 = extract<list> (o); <- naive attempt. but doesnt work.
More information about the Cplusplus-sig