Boost logo

Boost :

Subject: Re: [boost] [smart_ptr] explicit instantiation of boost::shared_ptr
From: Petr Machata (pmachata_at_[hidden])
Date: 2014-11-11 18:05:39


"Peter Dimov" <lists_at_[hidden]> writes:

> The easiest fix I can think of is to change
>
> return px[ i ];
>
> to
>
> return static_cast< typename boost::detail::sp_array_access< T
>>::type
>>( px[ i ] );

Ah, clever, thanks!

Do you want to track this issue somehow? Do I open a trac ticket, or
create a pull request, or...?

> This seems to work for me with the current develop (master should be
> the same). I get no other errors.

Those other errors were caused by wrong (missing) -I flags. Nothing of
interest.

Thanks,
Petr.


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