Opened 4 years ago

#13543 new Bugs

documentation for allocation_command shows the wrong return type

Reported by: matt.liberty@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: interprocess
Version: Boost 1.59.0 Severity: Problem
Keywords: Cc:

Description

The documentation at

https://www.boost.org/doc/libs/1_59_0/doc/html/interprocess/managed_memory_segments.html#interprocess.managed_memory_segments.managed_memory_segment_advanced_features.managed_memory_segment_expand_in_place

shows the return type for allocation_command is "std::pair<T *, bool>". The code doesn't match and just returns a "T *". The example also disagrees and shows:

std::size_t * ret = managed_shm.allocation_command

The pair would actually be nicer but either the code or the docs need updating. The same problem appears in later versions.

Change History (0)

Note: See TracTickets for help on using tickets.