Skip to content

ext/intl: GregorianCalendar addressing TODO. #19225

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

devnexen
Copy link
Member

using internally solely smart pointer for internal ICU class.

using internally solely smart pointer for internal ICU class.
@devnexen devnexen marked this pull request as ready for review July 23, 2025 20:45
@@ -33,13 +33,23 @@ typedef struct {
intl_error err;

// ICU calendar
#ifndef __cplusplus
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not so sure this trick is a good idea. Is there any guarantee in the C++ standard on the layout of a unique_ptr?
Perhaps we should convert the entire intl extension to C++ first before doing a change in a common file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants