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

Stefan Heinz heinz at zib.de
Fri Aug 27 21:54:40 CEST 2010


Hi Sebastian,

I'm not 100% sure but if you check the web page "Interface changes between
SCIP 1.1 and SCIP 1.2" http://scip.zib.de/doc/html/CHG3.html you might
have to do the last point:
- A significant change for C++ users is that all include files of SCIP
automatically detect C++ mode, i.e., no extern "C" is needed anymore.

Best Stefan

> Hi,
>
> what compiler and what compiler-version du you use.
>
> Best, Michael
>
>>
>>   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
>> _______________________________________________
>> Scip mailing list
>> Scip at zib.de
>> http://listserv.zib.de/mailman/listinfo/scip
>>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
>



More information about the Scip mailing list