[Boost-bugs] [Boost C++ Libraries] #9127: Unitialized reference in constructor of graph::distributed::named_graph::lazy_add_vertex

Subject: [Boost-bugs] [Boost C++ Libraries] #9127: Unitialized reference in constructor of graph::distributed::named_graph::lazy_add_vertex
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-18 08:46:31


#9127: Unitialized reference in constructor of
graph::distributed::named_graph::lazy_add_vertex
--------------------------------------+----------------------
 Reporter: Chris Bowen <lost.era@…> | Owner: jewillco
     Type: Patches | Status: new
Milestone: To Be Determined | Component: graph
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
--------------------------------------+----------------------
 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.)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9127>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC