Opened 13 years ago

Closed 13 years ago

#3404 closed Bugs (fixed)

shared_from_this documentation: missing semicolon in example code

Reported by: dk.boost@… Owned by: Peter Dimov
Milestone: Boost 1.41.0 Component: smart_ptr
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc: mateusz@…

Description

The example code in the documentation for shared_from_this is missing a ';' after the '}' that ends class Y:

http://www.boost.org/doc/libs/1_40_0/libs/smart_ptr/enable_shared_from_this.html

Change History (3)

comment:1 by mloskot <mateusz@…>, 13 years ago

Cc: mateusz@… added

Also, it is example and as such it's supposed to be complete to just copy & paste & compile, so boost:: qualification or

using namespace boost;

is missing.

comment:2 by Peter Dimov, 13 years ago

(In [57950]) Fix enable_shared_from_this example. Refs #3404.

comment:3 by Peter Dimov, 13 years ago

Resolution: fixed
Status: newclosed

(In [57959]) Merge [57950], [57952] to release. Fixes #3404. Fixes #3456.

Note: See TracTickets for help on using tickets.