[Scip] template<typename T> T* docast(T*, void *v) { return reinterpret_cast<T*>(v); } in SCIP 1.2

Sebastian Ruther Sebastian.Ruther at uon.edu.au
Thu Aug 26 09:42:46 MEST 2010


  Hey,

I recently upgraded from SCIP 1.1 to 1.2 and now I get the following error:
4>Z:\sr721\scip-1.2.0\src\blockmemshell/memory.h(33): error C2894: 
templates cannot be declared to have 'C' linkage
it's caused by statement template<typename T> T* docast(T*, void *v) { 
return reinterpret_cast<T*>(v); } of file memory.h
I checked and the line doesn't exist in my 1.1 version of memory.h.

What do I need to do?
Thank you
Sebastian


More information about the Scip mailing list