$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Alan M. Carroll (amc_at_[hidden])
Date: 2008-08-21 13:30:48
Hi there,
after making what I then thought was a bad mistake, I discovered that the
code below actually works (gcc 4.3.1, OpenSUSE 11 64bit, Boost 1.36). I.e.,
there is an implicit cast from shared_ptr<derived> to shared_ptr<base> to
make it fit the function argument, although both represent different types.
Is this intended behaviour (i.e. portable) ? I did not find a corresponding
description in the docu.