Opened 9 years ago
Closed 9 years ago
#9127 closed Patches (fixed)
Unitialized reference in constructor of graph::distributed::named_graph::lazy_add_vertex
Reported by: | Owned by: | Jeremiah Willcock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | graph |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
The copy constructor of graph::distributed::named_graph::lazy_add_vertex currently initializes the graph reference to itself, rather than to the graph reference of the instance from which it is copying. Subsequent accesses of this reference would produce undefined behavior, although a failing case is difficult to construct due to copy elision.
(Semantically the copy constructor should probably be deleted and replaced by a move constructor when this is supported, but this patch does not include that.)
Attachments (1)
Change History (2)
by , 9 years ago
Attachment: | lazy_add_vertex.patch added |
---|
comment:1 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [86515]) Applied patch from #9127 to fix lazy_add_vertex; fixes #9127