1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-31 10:24:23 +03:00

Use binary_t::value_type (#4805)

This commit is contained in:
Niels Lohmann
2025-06-02 06:35:27 +02:00
committed by GitHub
parent b19f058465
commit cf16c5ab9f
3 changed files with 27 additions and 2 deletions

View File

@ -2944,7 +2944,7 @@ class binary_reader
success = false;
break;
}
result.push_back(static_cast<std::uint8_t>(current));
result.push_back(static_cast<typename binary_t::value_type>(current));
}
return success;
}