Boost logo

Boost :

From: Aleksey Midenkov (asm_at_[hidden])
Date: 2008-03-27 06:22:11


The failure is in sp_counted_impl.hpp:66:

64 template<class Ptr>
65 sp_counted_impl_pd(const Ptr & p, const A &a, const D &d )
66 : this_allocator(a), D(d), m_ptr(p.get())
67 {}

p is of type offset_ptr<T> and m_ptr is of type T *

Test case source, compiler output and quick fix patch (which is not fully
correct, I suspect) are attached.

$ g++ --version
g++ (GCC) 4.2.3 (Debian 4.2.3-2)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.






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