Skip to content

Graph.h syntax error and illegal qualified name #1

@val-exe

Description

@val-exe

I just downloaded the library trying to implement it in a project of mine.

I am running into two issues, both in "Graph.h".

Firstly, on line 111, there is an illegal qualified name in member declaration, which can be fixed by deleting the "Graph::" from "Graph::findNodeById".

Secondly, and harder to fix (for me, as I am not an extremely experienced C++ programmer) there is a syntax error in the "Graph& operator << (T& rEdge)" definition, at line 86.

The code reads:
"

// forward as r-value reference
        makeEdge(std::move(rEdge))
        return *this;

"

Which visual studio is suggesting adding a semi-colon at the end of the line containing makeEdge. However, doing that (which I get the feeling is not the correct answer) generates two more issues, at line 74:

"
Error C2440 '': cannot convert from 'initializer list' to 'T'
Error C2672 'Graph::makeEdge': no matching overloaded function found
"

I am building with ISO C++14 Standard and Legacy MSVC C Standard.

Any help on the issue would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions