Skip to content

Conversation

@samrendra-singh
Copy link

Description

This PR add a new overload for CreateInterpreter that takes a std::vector<std::string> (with an initializer_list overload as well) and makes the old interface deprecated (which accepted a std::vector<const char*>).

Fixes #207

Type of change

  • New feature

Testing

  • Added unit tests in InterpreterTest.cpp that call the new overload (using both initializer lists and explicit std::vectorstd::string) to verify a valid interpreter is created.

  • Added a test for the deprecated interface (using std::vector<const char*>) to ensure backward compatibility (this usage triggers a compile-time deprecation warning).

  • Verified that the ambiguous calls are resolved and that all existing tests pass.

Checklist

  • I have read the contribution guide recently

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@samrendra-singh samrendra-singh closed this by deleting the head repository Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make CreateInterpreter take std::vector<std::string>

2 participants