-
Notifications
You must be signed in to change notification settings - Fork 139
Closed
Labels
CI/CDContinuous Integration/Continuous Development IssueContinuous Integration/Continuous Development IssuePriority:HighPriority Label for high priority issuePriority Label for high priority issueautomated workflowsAutomated WorkflowsAutomated WorkflowsbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
CodeQL Analysis fails due to a compilation error on example folder.
The error is the folloring:
[ 96%] Building CXX object examples/NetworkDynamicsExample/CMakeFiles/network_dynamics_example.dir/network_dynamics_example.cpp.o
/home/runner/work/CXXGraph/CXXGraph/examples/NetworkDynamicsExample/network_dynamics_example.cpp: In function ‘int main()’:
/home/runner/work/CXXGraph/CXXGraph/examples/NetworkDynamicsExample/network_dynamics_example.cpp:29:48: error: invalid initialization of reference of type ‘const std::vector<int>&’ from expression of type ‘const unsigned int’
29 | const std::vector<int>& degrees = nodePair.second;
| ~~~~~~~~~^~~~~~
gmake[2]: *** [examples/NetworkDynamicsExample/CMakeFiles/network_dynamics_example.dir/build.make:79: examples/NetworkDynamicsExample/CMakeFiles/network_dynamics_example.dir/network_dynamics_example.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:2477: examples/NetworkDynamicsExample/CMakeFiles/network_dynamics_example.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
Please correct it.
Metadata
Metadata
Assignees
Labels
CI/CDContinuous Integration/Continuous Development IssueContinuous Integration/Continuous Development IssuePriority:HighPriority Label for high priority issuePriority Label for high priority issueautomated workflowsAutomated WorkflowsAutomated WorkflowsbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers