Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-12-11 10:31:46

Larry Evans <cppljevans_at_[hidden]> writes:

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

Have you tried debugging this?

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at