Skip to content

Fix AMQP compilation on Android#6740

Merged
antkmsft merged 1 commit into
Azure:mainfrom
antkmsft:amqp-android
Sep 16, 2025
Merged

Fix AMQP compilation on Android#6740
antkmsft merged 1 commit into
Azure:mainfrom
antkmsft:amqp-android

Conversation

@antkmsft

Copy link
Copy Markdown
Member

This is to fix daily vcpkg validation PR, similar to #6738.

It should be the final PR to make the vcpkg validation PR green (FWIW, with this change I was able to compile core-amqp in vcpkg for android locally).

@antkmsft antkmsft self-assigned this Sep 16, 2025
Copilot AI review requested due to automatic review settings September 16, 2025 18:27
@antkmsft antkmsft added Azure.Core EngSys This issue is impacting the engineering system. AMQP Issues related to the AMQP protocol Support in Azure Core vcpkg_package_manager Pull requests that update vcpkg_package_manager code labels Sep 16, 2025
@antkmsft antkmsft enabled auto-merge (squash) September 16, 2025 18:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes AMQP compilation issues on Android by resolving ambiguous type conversion when passing chrono duration values to AmqpValue constructors. The change addresses a compiler ambiguity where Android's compiler cannot determine which AmqpValue overload to use for std::chrono::seconds::count() return values.

  • Added explicit cast to std::int64_t for chrono duration count values
  • Added compile-time assertions to validate type assumptions
  • Included <type_traits> header for static assertion support

@antkmsft antkmsft merged commit 230b536 into Azure:main Sep 16, 2025
46 checks passed
@antkmsft antkmsft deleted the amqp-android branch September 16, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AMQP Issues related to the AMQP protocol Support in Azure Core Azure.Core EngSys This issue is impacting the engineering system. vcpkg_package_manager Pull requests that update vcpkg_package_manager code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants