Opened 4 years ago
#13543 new Bugs
documentation for allocation_command shows the wrong return type
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | interprocess |
Version: | Boost 1.59.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The documentation at
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.
Note:
See TracTickets
for help on using tickets.