This commit is contained in:
2026-09-07 19:01:44 +03:00
parent ed2a5cac45
commit ef798ddaf2
4 changed files with 64 additions and 62 deletions

View File

@@ -75,18 +75,18 @@ public:
error_t fromCharRange(snplib::snplib_input_char_range_c auto&& bytes)
requires(!std::same_as<CharRangeT, std::remove_cvref_t<decltype(bytes)>>)
{
auto err = fromCharRange(
std::forward<decltype(bytes)>(bytes),
{.keyval_delim = ADCLIB_NETMSG_KEYWORD_PARAM_DELIM, .valseq_delim = ADCLIB_NETMSG_PARAM_PARAM_DELIM});
// auto err = fromCharRange(
// std::forward<decltype(bytes)>(bytes),
// {.keyval_delim = ADCLIB_NETMSG_KEYWORD_PARAM_DELIM, .valseq_delim = ADCLIB_NETMSG_PARAM_PARAM_DELIM});
if (err) {
return err;
}
// if (err) {
// return err;
// }
if (!std::ranges::contains(ADCLIB_NETMSG_VALID_KEYWORDS, key())) {
this->_isValid = false;
// return an error here!!!
}
// if (!std::ranges::contains(ADCLIB_NETMSG_VALID_KEYWORDS, key())) {
// this->_isValid = false;
// // return an error here!!!
// }
return {};
}