Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-11-10 13:40:14


Oliver Kania wrote:
> Hello,
> I am encountering the following problem when
> using boost with shared pointers (Ubuntu Edgy, G++4.1/4.0/3.4):
> =======================
> /usr/include/boost/detail/shared_ptr_nmt.hpp:115: error: forming
> reference to void
> shared_ptr_nmt.hpp:114: error: forming reference to void
> ==========================
> the source code reads :
> =========================
> T & operator*() const // never throws
> {
> BOOST_ASSERT(px != 0);
> return *px;
> }

You shouldn't be getting shared_ptr_nmt.hpp at all on g++, this is the
"ancient compiler" version. Your config incorrectly defines
BOOST_NO_MEMBER_TEMPLATES for some reason, or someone is including the _nmt
header directly (which shouldn't be done).


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net