Opened 12 years ago
Closed 12 years ago
#4548 closed Bugs (fixed)
typo in factory documentation example code
Reported by: | Owned by: | t_schwinger | |
---|---|---|---|
Milestone: | Boost 1.44.0 | Component: | functional/factory |
Version: | Boost 1.44.0 | Severity: | Problem |
Keywords: | Cc: |
Description
At this page: http://www.boost.org/doc/libs/1_44_0/libs/functional/factory/doc/html/index.html
this line seems wrong:
std::auto_ptr<an_abstract_factory> x = factories[some_name]->create();
I think it should be:
std::auto_ptr<an_abstract_class> x = factories[some_name]->create();
cheers,
Erik Sjölund
Attachments (1)
Change History (3)
by , 12 years ago
Attachment: | fix-factory-html-bug.patch added |
---|
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This example is wrong for any number of reasons: