-
Notifications
You must be signed in to change notification settings - Fork 543
CXX-2109 Deprecate all references to utf8 #744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a9c728c
312345f
52fc441
53a45e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
#endif | ||
|
||
BSONCXX_ENUM(double, 0x01) | ||
BSONCXX_ENUM(utf8, 0x02) | ||
BSONCXX_ENUM(string, 0x02) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this renaming causes some API removal. grepping through all .hpp files for
Both cases are enum values. For those cases, we may need to redefine each at the same integer value. Ideally we can deprecate the old utf8 value. There may not be a completely portable way of doing so, but Here's what I'm thinking.
I think this could be a motivation for doing CXX-641 before the next release as well. That way we can double check ABI changes before we release. I moved that to "Needs Triage". There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. I added There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So it appears that the ability deprecated enum values didn't appear until GCC-6 (source):
The code snippet above ( Local compilers:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We might just have to leave this and error code as is until the next major release. @samantharitter any ideas? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for looking into it. If there's isn't a straightforward way to deprecate it, then I agree we'll have to leave it for now. We can note the deprecation in release notes. I verified |
||
BSONCXX_ENUM(document, 0x03) | ||
BSONCXX_ENUM(array, 0x04) | ||
BSONCXX_ENUM(binary, 0x05) | ||
|
Uh oh!
There was an error while loading. Please reload this page.