to_bson member function ignores BinaryType template parameter #4072
Labels
aspect: binary formats
BSON, CBOR, MessagePack, UBJSON
kind: bug
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Description
Currrently
to_bson
is implemented like this:which ignores the
BinaryType
template parameter received bybasic_json
.It should use the
BinaryType
instead:Reproduction steps
Expected vs. actual results
Expected:
static_assert(std::is_same_v<CustomJson::binary_t, decltype(result)>)
shouldn't failActual
static_assert(std::is_same_v<CustomJson::binary_t, decltype(result)>)
failsMinimal code example
Error messages
No response
Compiler and operating system
all
Library version
3.11.2
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: