Skip to content

Fix GH-15094: php_random_default_engine() is not C++ conforming #15100

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

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jul 24, 2024

Using compound literals is conforming to C99 (and up), but not with any C++ standard. Since the code is in a public header, it might be used by C++ extensions. Unfortunately, we cannot even used designated initializers, because these are a C++20 feature, so we stick with classic C/C++ code.

Using compound literals is conforming to C99 (and up), but not with any
C++ standard.  Since the code is in a public header, it might be used
by C++ extensions.  Unfortunately, we cannot even used designated
initializers, because these are a C++20 feature, so we stick with
classic C/C++ code.
@cmb69 cmb69 linked an issue Jul 24, 2024 that may be closed by this pull request
@cmb69 cmb69 marked this pull request as ready for review July 25, 2024 09:31
@cmb69 cmb69 requested review from TimWolla and zeriyoshi as code owners July 25, 2024 09:31
Copy link
Contributor

@zeriyoshi zeriyoshi left a comment

Choose a reason for hiding this comment

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

I don't think it's a problem. I did not notice it. Thanks!

Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

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

It's not pretty, but if it works.

@cmb69 cmb69 closed this in da72ac1 Jul 25, 2024
@cmb69 cmb69 deleted the gh15094 branch July 25, 2024 10:44
@macintoshplus
Copy link

@cmb69, this fix is no longer necessary to build sqlsrv?

@cmb69
Copy link
Member Author

cmb69 commented Jul 25, 2024

@macintoshplus, same as #15096 (comment).

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.

php_random_default_engine() is not C++ conforming
4 participants