Re: void* vector

2006-12-09 Thread Alexey Smirnov
The documentation in vec.h says that pointer values are dereferenced: Both the structure object and pointer variants pass pointers to objects around -- in the former case the pointers are stored into the vector and in the latter case the pointers are dereferenced and the objects copied into the

Re: void* vector

2006-12-09 Thread Steven Bosscher
On 12/9/06, Alexey Smirnov <[EMAIL PROTECTED]> wrote: typedef void* handle_t; DEF_VEC_I(handle_t); DEF_VEC_ALLOC_I(handle_t,heap); Why DEF_VEC_I instead of DEF_VEC_P? See vec.h. Gr. Steven

void* vector

2006-12-09 Thread Alexey Smirnov
Hello, I am trying to use vec.h to implement a vector of pointers: typedef void* handle_t; DEF_VEC_I(handle_t); DEF_VEC_ALLOC_I(handle_t,heap); extern VEC(handle_t,heap) *handles; It does not compile: In function 'VEC_handle_t_must_be_integral_type': error: wrong type argument to bit-comple