Boost logo

Boost :

From: Thomas Witt (witt_at_[hidden])
Date: 2003-10-01 05:42:08


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Keith MacDonald wrote:
| Hi Thomas,
| I've got a simple loop, like this:
|
| container3 c3;
| for (container3::const_iterator it = c3.begin(),
| it != c3.end();
| ++it)
| { ... }
|
| For reasons I don't understand, the compiler resolves c3.end() to a
| container3::iterator, for the not equal test

The selection of const or non const member functions depends solely on
the constness of the object itself. c3 isn't const so
iterator container3::end(); is choosen.

|, and then spews out a "could
| not deduce template argument" error, for the member function equal,
which is
| too long to include here. I've zipped it up, along with the header
and test
| source files, and uploaded it here:
|
| ftp://69.57.152.66/pub/tmp/itertest.zip (2.2KB)

This looks like a problem in my proposed solution. I'll look into this
later.

Thomas

- --
Thomas Witt
witt_at_[hidden]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/eq+A0ds/gS3XsBoRAkIbAJwL4UxDuWEgUmBlJQU54nZpx+x1OgCZAWvQ
ItE+txUcoE0D/Nki3MknDOw=
=3Xal
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk