Opened 12 years ago

Closed 12 years ago

#4190 closed Bugs (fixed)

Unqualified 'tie' in libs/graph/example/helper.hpp

Reported by: anonymous Owned by: Andrew Sutton
Milestone: Boost 1.43.0 Component: graph
Version: Boost Development Trunk Severity: Problem
Keywords: Cc: chris@…

Description

There is an unqualified occurrence of 'tie' in libs/graph/example/helper.cpp which prevents compiling on clang++. The following trivial patch fixes it.

Index: libs/graph/example/helper.hpp =================================================================== --- libs/graph/example/helper.hpp (revision 61786) +++ libs/graph/example/helper.hpp (working copy) @@ -24,7 +24,7 @@

Vertex v; Iterator iter; bool inserted;

  • tie(iter, inserted) = vm.insert(make_pair(name, Vertex()));

+ boost::tie(iter, inserted) = vm.insert(make_pair(name, Vertex()));

if(inserted) {

The name was unique so we need to add a vertex to the graph v = add_vertex(g);

Attachments (1)

graph.patch (535 bytes ) - added by Christopher Jefferson <chris@…> 12 years ago.
Patch

Download all attachments as: .zip

Change History (3)

by Christopher Jefferson <chris@…>, 12 years ago

Attachment: graph.patch added

Patch

comment:1 by Christopher Jefferson <chris@…>, 12 years ago

Cc: chris@… added

Apologises, attached formatted patch, and also my e-mail address.

comment:2 by Jeremiah Willcock, 12 years ago

Resolution: fixed
Status: newclosed

(In [61793]) Patched unqualified calls to tie() using patch in #4190; fixes #4190

Note: See TracTickets for help on using tickets.