Even with my workaround, there are a number of compilation warnings that I do not believe were there prior to Markos' change. eg:
[ 21%] Building CXX object src/CMakeFiles/zorba_simplestore.dir/store/naive/store.cpp.obj
store.cpp
C:\zorba\trunk\src\zorbautils/hashmap.h(827) : warning C4244: 'return' : conversion from 'const double' to 'zorba::csize', possible loss of data C:\zorba\trunk\src\zorbautils/hashmap.h(826) : while compiling class template member function 'zorba::csize zorba::HashMap<T,V,C>::computeCapacity(zorba::csize) const'
with
[ T=zorba::zstring, V=zorba::simplestore::XmlNode_t, C=zorba::HashMapZStringCmp
] C:\zorba\trunk\src\zorbautils/hashmap.h(395) : see reference to function template instantiation 'zorba::csize zorba::HashMap<T,V,C>::computeCapacity(zorba::csize) const' being compiled
with
[ T=zorba::zstring, V=zorba::simplestore::XmlNode_t, C=zorba::HashMapZStringCmp
] c:\zorba\trunk\src\store\naive\store.h(181) : see reference to class template instantiation 'zorba::HashMap<T,V,C>' being compiled
with
[ T=zorba::zstring, V=zorba::simplestore::XmlNode_t, C=zorba::HashMapZStringCmp
]
This leads me to believe there is a template-related error somewhere, which is why I think Paul is probably the best victim here.
Even with my workaround, there are a number of compilation warnings that I do not believe were there prior to Markos' change. eg:
[ 21%] Building CXX object src/CMakeFiles/ zorba_simplesto re.dir/ store/naive/ store.cpp. obj trunk\src\ zorbautils/ hashmap. h(827) : warning C4244: 'return' : conversion from 'const double' to 'zorba::csize', possible loss of data
C:\zorba\ trunk\src\ zorbautils/ hashmap. h(826) : while compiling class template member function 'zorba::csize zorba:: HashMap< T,V,C>: :computeCapacit y(zorba: :csize) const'
T= zorba:: zstring,
V= zorba:: simplestore: :XmlNode_ t,
C= zorba:: HashMapZStringC mp
C:\zorba\ trunk\src\ zorbautils/ hashmap. h(395) : see reference to function template instantiation 'zorba::csize zorba:: HashMap< T,V,C>: :computeCapacit y(zorba: :csize) const' being compiled
T= zorba:: zstring,
V= zorba:: simplestore: :XmlNode_ t,
C= zorba:: HashMapZStringC mp
c:\zorba\ trunk\src\ store\naive\ store.h( 181) : see reference to class template instantiation 'zorba: :HashMap< T,V,C>' being compiled
T= zorba:: zstring,
V= zorba:: simplestore: :XmlNode_ t,
C= zorba:: HashMapZStringC mp
store.cpp
C:\zorba\
with
[
]
with
[
]
with
[
]
This leads me to believe there is a template-related error somewhere, which is why I think Paul is probably the best victim here.