Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-23 13:26:27

Uhhh, I just realized that I also need to extract the contained type, so I
can't do this without at least a small intrusion on reference_wrapper<T>,
which declares a typedef for T.


----- Original Message -----
From: "Douglas Gregor" <gregod_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, January 23, 2002 1:16 PM
Subject: Re: [boost] Suggested ref.hpp modification

> On Wednesday 23 January 2002 01:05 pm, you wrote:
> > Ah good, that avoids using inheritance to distinguish these babies...
> > but is char really guaranteed to be smaller than double (half-joking
> >
> > -Dave
> It would be a fun exercise to construct a target platform to test all
> whacky possibilities. Make the null pointer not be represented all zeros,
> have sizeof(double) == sizeof(char), sizeof(function pointer) !=
> pointer), etc.
> BTW, type_traits also makes the assumption that sizeof(char) !=
> sizeof(double). We could just change it to:
> typedef char yes_type[2];
> typedef char no_type[1];
> Doug
> Info: Send unsubscribe requests to:
> Your use of Yahoo! Groups is subject to

Boost list run by bdawes at, gregod at, cpdaniel at, john at