Skip to content

Request response samples #763

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 24 commits into
base: RequestResponseWorkspace
Choose a base branch
from

Conversation

bretambrose
Copy link
Contributor

  • Move old shadow, jobs, and identity samples to deprecated folder
  • Add new samples based on the v2 clients

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Comment on lines +124 to +126
// A simple `std::promise<Result>` can be used here. But to support old VS compilers requiring a template parameter
// be default-constructible, we wrap Result into Optional.
std::promise<Aws::Crt::Optional<CreateKeysAndCertificateResult>> createKeysResultPromise;
Copy link
Contributor

Choose a reason for hiding this comment

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

We hit here an old VS bug: https://developercommunity.visualstudio.com/t/c-shared-state-futuresstate-default-constructs-the/60897
Alternatively, we could make Result to be default-constructible, but a default value doesn't make much sense for it.

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.

3 participants