Bug#379478: [Buildd-tools-devel] Bug#379478: [schroot]: FTBFS: error: no match for ‘operator!=’ in ‘pos != std::vector

Roger Leigh rleigh at whinlatter.ukfsn.org
Thu Jul 27 10:14:26 UTC 2006


tags 379478 + fixed-upstream pending
thanks

Jens Seidel <jensseidel at users.sf.net> writes:

> I get the following error if I try to compile schroot using g++ 4.0.4:
>
> ../../../schroot/schroot-listmounts-main.cc: In member function ‘virtual void schroot_listmounts::main::action_listmounts()’:
> ../../../schroot/schroot-listmounts-main.cc:124: error: no match for ‘operator!=’ in ‘pos != std::vector<_Tp, _Alloc>::rend() [with _Tp = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Alloc = std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >]()’

> The following patch fixes it:
> -  sbuild::string_list mounts =
> +  const sbuild::string_list mounts =

I have applied the change to SVN to fix this, thanks.  However, this
is a libstdc++ library bug, rather than a bug in schroot: const and
non-const iterators should be comparable.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please sign and encrypt your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20060727/50bb4bc0/attachment.pgp


More information about the Buildd-tools-devel mailing list