You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
"
"
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.
The text was updated successfully, but these errors were encountered: