I had a problem to compile the rapidxml. because this part of code. I change and works... Theoretically, these two version are accepted by the vc 2005. but... I dont know why, only in the second version works.
Version with compiler problems...
alloc_func *m_alloc_func; // Allocator function, or 0 if default is to be used
free_func *m_free_func; // Free function, or 0 if default is to be used
typedef void* (alloc_func)(std::size_t); // Type of user-defined function used to allocate memory
typedef void (free_func)(void *); // Type of user-defined function used to free memory
void set_allocator(alloc_func *af, free_func *ff){
==================================================================================
New version working....
alloc_func m_alloc_func; // Allocator function, or 0 if default is to be used
free_func m_free_func; // Free function, or 0 if default is to be used
typedef void *(*alloc_func)(std::size_t); // Type of user-defined function used to allocate memory
typedef void (*free_func)(void *); // Type of user-defined function used to free memory
void set_allocator(alloc_func af, free_func ff){
I think it's a problem with the VC compiler. I changed the line
typedef void *(alloc_func)(std::size_t);
to
typedef PVOID (alloc_func)(std::size_t); ....which works.