| 346 | |
| 347 | template <typename... ArgTypes> |
| 348 | void check_args(const cs::vector &args) |
| 349 | { |
| 350 | if (sizeof...(ArgTypes) == args.size()) |
| 351 | check_args_base<ArgTypes...>(args, std::make_index_sequence<sizeof...(ArgTypes)> {}); |
| 352 | else |
| 353 | throw cs::runtime_error( |
| 354 | "Wrong size of the arguments. Expected " + std::to_string(sizeof...(ArgTypes)) + ", provided " + |
| 355 | std::to_string(args.size())); |
| 356 | } |
| 357 | |
| 358 | template <typename _TargetT, typename _SourceT, typename _CheckT, std::size_t index> |
| 359 | struct try_convert_and_check { |
nothing calls this directly
no test coverage detected