Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2003-12-11 08:45:37


On 11/05/2003 04:10 PM, cppljevans_at_[hidden] wrote:
[snip]
> available. Which brings up another question. How does ref_counted
> avoid the extra pointer used by shared_ptr to get at the start of the
> object in order to do correct deletion in case of multiple inheritance?
The file:
 
http://groups.yahoo.com/group/boost/files/shared_cyclic_ptr/smart_ptr_test.cpp

is a slight change to the one in sandbox latest which results in:

cd /home/evansl/prog_dev/boost_dev/libs/policy_ptr/test/latest/
make
g++-3.3 -ggdb -Wall -MMD -c -I/home/evansl/prog_dev/boost_dev
-I/home/evansl/prog_dev/boost-release/boost-1.30.2 smart_ptr_test.cpp
g++-3.3 -ggdb -o smart_ptr_test smart_ptr_test.o execution_monitor.o
test_tools.o unit_test_log.o unit_test_main.o unit_test_monitor.o
unit_test_parameters.o unit_test_result.o unit_test_suite.o
./smart_ptr_test
Running 1 test case...
Exception in "multi_inherit_test": signal: memory access violation
/home/evansl/prog_dev/boost-release/boost-1.30.2/libs/test/src/unit_test_suite.cpp(107):
fatal error in "multi_inherit_test": testing aborted
/home/evansl/prog_dev/boost-release/boost-1.30.2/libs/test/src/unit_test_suite.cpp(107):
fatal error in "Basic smart_ptr framework tests": testing aborted

*** errors detected in test suite "Basic smart_ptr framework tests"; see
standard output for details


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