[Debian-med-packaging] Bug#1000220: /usr/include/dcmtk/dcmsr/dsrtlist.h:303:30: error: cannot convert 'std::__cxx11::list<int, std::allocator<int> >::iterator'

Mathieu Malaterre malat at debian.org
Mon Nov 22 09:26:57 GMT 2021


Control: tags -1 upstream
Control: found -1 3.6.6-2

Dear DCMTK team,

The DCMTK package 3.6.6-2 currently in Debian/sid fails to build
because of (*). Could you please confirm that DCMTK_ENABLE_STL:BOOL=ON
is an acceptable option for releasing DCMTK in Debian, and that the
toolkit codebase should handle this with c++14 compiler ?

Thanks

(*)
 % cat t.cxx
#include <dcmtk/dcmsr/dsrtlist.h>
int main()
{
  DSRListOfItems<int> l;
  l.removeItem(0);
}

 % g++ t.cxx
In file included from t.cxx:1:
/usr/include/dcmtk/dcmsr/dsrtlist.h: In instantiation of 'OFCondition
DSRListOfItems<T>::removeItem(size_t) [with T = int; size_t = long
unsigned int]':
t.cxx:5:15:   required from here
/usr/include/dcmtk/dcmsr/dsrtlist.h:303:30: error: cannot convert
'std::__cxx11::list<int, std::allocator<int> >::iterator' to
'std::__cxx11::list<int, std::allocator<int> >::const_iterator&'
  303 |         if (gotoItemPos(idx, iterator))
      |                              ^~~~~~~~
      |                              |
      |                              std::__cxx11::list<int,
std::allocator<int> >::iterator
/usr/include/dcmtk/dcmsr/dsrtlist.h:320:64: note:   initializing
argument 2 of 'OFBool DSRListOfItems<T>::gotoItemPos(size_t, typename
std::__cxx11::list<T>::const_iterator&) const [with T = int; OFBool =
bool; size_t = long unsigned int; typename
std::__cxx11::list<T>::const_iterator = std::__cxx11::list<int,
std::allocator<int> >::const_iterator]'
  320 |                        OFLIST_TYPENAME OFListConstIterator(T)
&iterator) const
      |                                                                ^



More information about the Debian-med-packaging mailing list