一个不能理解的错误(继)
http://search.csdn.net/Expert/topic/610/610745.xml?temp=.6483728
我遇到了与此贴同样的问题,但当我按此方法实施后,却出现了另一种错误:
Compiling...
main.cpp
error C2440: 'initializing' : cannot convert from 'class Node<float> *' to 'float *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
while compiling class-template member function '__thiscall dataList<float>::dataList<float>(int)'
hstaticsearch.h(39) : error C2439: 'Element' : member could not be initialized
see declaration of 'Element'
while compiling class-template member function '__thiscall dataList<float>::dataList<float>(int)'
Error executing cl.exe.
请高手指教?
另:对value如何设置缺省值?