|
Boost : |
From: Ullrich Koethe (u.koethe_at_[hidden])
Date: 2001-11-21 06:40:30
Alexandre Karev wrote:
>
> On Tue, 20 Nov 2001, Ullrich Koethe wrote:
>
> u.koethe >On g++, this doesn't work with std::vector<bool> either, because
> u.koethe >std::vector<bool>::operator[] returns a proxy (type _Bit_reference).
> u.koethe >
> u.koethe >BTW, on g++ 'sizeof(bool) == 4'. So Image<unsigned char> will be smaller
> u.koethe >than Image<bool> unless the latter is packed, with all problems that the
> u.koethe >use of proxies implies.
> u.koethe >
>
> On which platform 'sizeof(bool) == 4'?
>
This is g++ on Solaris:
# g++ -v
Reading specs from
/software/gcc-2.95.2/SunOS-5.6/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
gcc version 2.95.2 19991024 (release)
# uname -a
SunOS kogs51 5.8 Generic sun4u sparc SUNW,Ultra-5_10
# aa.cc
sizeof( bool ) is 4
Ulli
________________________________________________________________
| |
| Ullrich Koethe Universität Hamburg / University of Hamburg |
| FB Informatik / Dept. of Computer Science |
| AB Kognitive Systeme / Cognitive Systems Group |
| |
| Phone: +49 (0)40 42883-2573 Vogt-Koelln-Str. 30 |
| Fax: +49 (0)40 42883-2572 D - 22527 Hamburg |
| Email: u.koethe_at_[hidden] Germany |
| koethe_at_[hidden] |
| WWW: http://kogs-www.informatik.uni-hamburg.de/~koethe/ |
|________________________________________________________________|
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk