Bug: Redundant versions of `parseSystemModelData` cause compiler error
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- cpp
- Domain
- backend-api-design
Research direction
Search the GridKit source for parseSystemModelData and inspect its overload declarations and nearby call sites. Remove the redundant const std::string& overload, then build the project and verify that calling the function with a string literal no longer produces an ambiguous-overload compiler error.
Written by the indexing model from the issue text.
Description
Description how to reproduce the bug
Calling parseSystemModelData("string-literal-filename") is ambiguous since the literal can convert to either a std::string or a std::filesystem::path.
The fix is simply to remove the overload that takes const std::string&. It is redundant since a std::string can also convert automatically to a std::filesystem::path.
GridKit™ version
develop branch at ad866893
System and environment details
This situation would cause an error regardless of environment
Additional information
No response
- Dominant language
- C++
- Stars
- 27
- Forks
- 11
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 23
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ORNL/GridKit
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
question
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
cleanup documentation
-
bug
-
help wanted question
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
infiniflow/infinity#3502 ·