error in usin list with boost

GujuBoy dirgesh at gmail.com
Sun Jun 5 02:13:50 EDT 2005


i have created a "cpp" file which has the followin code and when i try
to compile it..it does not know what "list" is..it says its
undefined..i also tried using #include <boost/python/list.hpp>

but no differe...can someone please help.

thanks

static list retrieval_as_list(SplitText &self, int position,
         int retrieveLength) {
        list result;

        int *characters = new int[retrieveLength];
        int lenRet = self.RetrieveUTF32(position, characters,
                 retrieveLength);
        for (int i=0;i<lenRet;i++) {
                result.append(characters[i]);
        }
        delete []characters;
        return result;

}




More information about the Python-list mailing list