Skip to content
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

Allow std::nullptr_t for all Scopable types (this was an oversight in the API). #275

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

copybara-service[bot]
Copy link

Allow std::nullptr_t for all Scopable types (this was an oversight in the API).

In rare instances classes may want to have uninitialized members that reside on the stack. Previously, the base declaration will call the constructor with no arguments, but this API provides for declaring members with "LocalObject obj{nullptr};" syntax.

#274

@copybara-service copybara-service bot force-pushed the test_617944956 branch 6 times, most recently from 3d5a4da to f14d6da Compare March 21, 2024 23:53
…in the API).

In rare instances classes may want to have uninitialized members that reside on the stack. Previously, the base declaration will call the constructor with no arguments, but this API provides for declaring members with "LocalObject<kClass> obj{nullptr};" syntax.

#274

PiperOrigin-RevId: 618004432
@copybara-service copybara-service bot merged commit f7a9908 into main Mar 22, 2024
@copybara-service copybara-service bot deleted the test_617944956 branch March 22, 2024 00:01
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.

1 participant