-
Notifications
You must be signed in to change notification settings - Fork 144
Closed
Labels
Priority:CriticalPriority Label for Critical IssuePriority Label for Critical IssuebugSomething isn't workingSomething isn't workingcoresomething about coresomething about coregood first issueGood for newcomersGood for newcomers
Description
Describe the bug
The bug happens where user writes
CXXGraph::Node<std::string> node = CXXGraph::Node<std::string>("id", 0);The library accepts this as valid and it will pass compile time. But then when it times to run the actual code, this happens:
[2] 43987 segmentation fault ./build/standalone/anon
I suggest adding the explicit keyword to avoid conversion from double to std::string
This happens when user's IDE might not warn them that there is an implicit conversion and since they thought that templated type std::string is for the first parameter.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Priority:CriticalPriority Label for Critical IssuePriority Label for Critical IssuebugSomething isn't workingSomething isn't workingcoresomething about coresomething about coregood first issueGood for newcomersGood for newcomers