|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-03-27 00:32:09
----- Original Message -----
From: "Douglas Gregor" <gregod_at_[hidden]>
> On Tuesday 26 March 2002 11:56 pm, you wrote:
> > Have you left me enough hooks to hijack this for my code? In
particular,
> > I need to be able, given a T&, to find a type aligned with T, even
on
> > MSVC. That's what my code currently does. If it's possible to use
the
> > new type_traits stuff, I'm happy.
> >
> > -Dave
>
> Sure.
>
> template<typename Reference>
> struct referent_storage {
> typedef typename remove_cv<typename
> remove_reference<Reference>::type>::type referent;
^^^^^^^^^^^^^^^^
Wrongo. Doesn't work without partial specialization.
-Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk