8000 fix: usage of uninitialized callback in constexpr function by Ladence · Pull Request #43 · David-Haim/concurrencpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: usage of uninitialized callback in constexpr function #43

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

Merged
merged 1 commit into from
Jul 24, 2021

Conversation

Ladence
Copy link
Contributor
@Ladence Ladence commented Jul 24, 2021

Hi! I've found out that this great library couldn't be built on Clang 11.0.3-apple-darwin20.5.0 (Mac OSX SDK 10.15.4).
Actually this statement is described in standard.

The definition of a constexpr function shall satisfy the following requirements: [...] its function-body shall be
 = delete, = default, or a compound-statement that does not contain [...]
 a definition of a variable of non-literal type or of static or thread storage duration
 or for which no initialization is performed.

Now it's build good.

@David-Haim
Copy link
Owner

Approved.

@David-Haim David-Haim merged commit 6d2ad94 into David-Haim:develop Jul 24, 2021
@Ladence Ladence deleted the uninit-in-constexpr-method branch December 5, 2022 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0