-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor call method from cli/helper.h
- Use a single template for both std::optional and non-optional types. - Replace std::stoull with std::from_chars or std::istringstream based on GCC version. We should support GCC 7.5, but unfortunately it supports not full set of C++17 features. #include <charconv> is unsupported - Replaced recursive template functions with a single function utilizing std::index_sequence and fold expressions to iterate over tuple elements. - Add support for floating-point arguments - Remove casting of call argument to a function pointer. Now it can accept any callable which is more efficient and extensive - Rename it to Call (google codestyle)
- Loading branch information
1 parent
d580254
commit 2de0ccd
Showing
2 changed files
with
157 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.