Opened 9 years ago

Closed 9 years ago

#8641 closed Bugs (fixed)

[serialization] detail/shared_count_132.hpp fails to compile if BOOST_SP_ENABLE_DEBUG_HOOKS is defined

Reported by: Pekka Seppänen <pekka.seppanen@…> Owned by: Robert Ramey
Milestone: Boost 1.54.0 Component: serialization
Version: Boost 1.53.0 Severity: Problem
Keywords: serialization BOOST_SP_ENABLE_DEBUG_HOOKS cbi_call_constructor_hook cbi_call_destructor_hook Cc:

Description

detail/shared_ptr_132.hpp lives mainly under boost_132 namespace. It has two function declarations (for shared_ptr debug hooks) that use checked_deleter and checked_array_deleter; Of course, these live under boost namespace.

As neither are brought under boost_132 (for obvious reasons) or have proper namespace prefixes anything that includes shared_ptr_132.hpp and has BOOST_SP_ENABLE_DEBUG_HOOKS defined fails to compile.

A trivial fix is to add boost namespace prefixes, as done elsewhere in the file. A patch is attached that does this.

Attachments (1)

shared_count_132.hpp.patch (1.4 KB ) - added by Pekka Seppänen <pekka.seppanen@…> 9 years ago.
Add boost namespace prefix to checked_deleter and checked_array_deleter.

Download all attachments as: .zip

Change History (3)

by Pekka Seppänen <pekka.seppanen@…>, 9 years ago

Attachment: shared_count_132.hpp.patch added

Add boost namespace prefix to checked_deleter and checked_array_deleter.

comment:1 by Pekka Seppänen <pekka.seppanen@…>, 9 years ago

Summary: [serialization] detail/shared_ptr_132.hpp fails to compile if BOOST_SP_ENABLE_DEBUG_HOOKS is defined[serialization] detail/shared_count_132.hpp fails to compile if BOOST_SP_ENABLE_DEBUG_HOOKS is defined

Oh my, it's detail/shared_count_132.hpp *not* detail/shared_ptr_132.hpp. Unfortunaly, it seems that I'm not able to modify description in the original ticket.

comment:2 by Robert Ramey, 9 years ago

Resolution: fixed
Status: newclosed

I'm taking your word for this and applying the patch.

Robert Ramey

Note: See TracTickets for help on using tickets.