$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [interest] rich-typed smart pointers
From: Julian Gonggrijp (j.gonggrijp_at_[hidden])
Date: 2013-10-06 15:32:27
Larry Evans wrote:
> Googling:
>
> c++ templated friend
>
> lead to:
>
> http://stackoverflow.com/questions/3292795/template-friend
>
> which lead to the owner_ptr CTOR code:
>
> template<typename Derived>
> owner_ptr (owner_ptr<Derived>&& source) : pointer(source.pointer) {
> source.pointer = nullptr;
> }
> template <class Derived>
> friend class owner_ptr;
>
> in rich_typed_ptr.hpp which resulted in successful compile and run
> of the shapes.cpp example without using make_dynamic.
>
> HTH.
Yes! Thanks a million.
-Julian