
14 Jan
2009
14 Jan
'09
10:58 p.m.
On Wed, Jan 14, 2009 at 17:48, Phil Endecott <spam_from_boost_dev@chezphil.org> wrote:
I would hope that a class with no state in it would take no space, but I suppose compilers may be dumb about that sometimes.
Doesn't the standard require that it have a unique address, essentially preventing that?
I think you can use things like typename RandomAccessIter::value_type instead of passing *first in order to determine data_type.
I tried that, but it didn't compile on my system (MacOSX PPC gcc4.0.1).
That's surprising. Maybe you could distil it down to a minimal example and we can all scratch our heads over it.
Maybe you can use the MPL metafunction version, with its possible workarounds? typename boost::iterator_value<RandomAccessIter>::type