Comment 10 for bug 1070998

Revision history for this message
Chris Hillery (ceejatec) wrote :

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.