Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-03-27 10:43:26


On Wednesday 27 March 2002 12:32 am, you wrote:

> > 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

Neither does the original version in from_python_data.hpp.

The size/alignment also matches the original behavior:

  BOOST_STATIC_CONSTANT(std::size_t, target =
referent_alignment<Reference>::value);
^^^^^^^^^^^^^^^^^^

typedef aligned_storage<align_t,referent_size<Reference>::value> type;
                                ^^^^^^^^^^^^^

        Doug


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