Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76847

Ambiguous function in bluetooth with iOS 13

    XMLWordPrintable

    Details

    • Platform/s:
      iOS/tvOS/watchOS
    • Commits:
      0fc7e18bf7a24c9408602242d51a852905dfd0da (qt/qtconnectivity/5.12)

      Description

      We tried to build Qt 5.12.3 against current iOS 13 (public beta). It seems the compiler do not like some stuff.

       

      qbluetoothdevicediscoveryagent_ios.mm:135:9: error: conversion from 'QBluetoothDeviceDiscoveryAgentPrivate::LEDeviceInquiry' (aka 'ObjCScopedPointer<OSXBTLEDeviceInquiry>') to 'bool' is ambiguous
          if (inquiryLE) {
              ^~~~~~~~~
      ./osx/osxbtutility_p.h:86:5: note: candidate function
          operator T*() const
          ^
      /[...]/src/qt/qtbase/include/QtCore/../../src/corelib/tools/qscopedpointer.h:132:5: note: candidate function
          operator RestrictedBool() const Q_DECL_NOTHROW
          ^
      qbluetoothdevicediscoveryagent_ios.mm:154:12: error: conversion from 'const QBluetoothDeviceDiscoveryAgentPrivate::LEDeviceInquiry' (aka 'const ObjCScopedPointer<OSXBTLEDeviceInquiry>') to 'bool' is ambiguous
          return inquiryLE;
                 ^~~~~~~~~
      /[...]/src/qt/qtbase/include/QtCore/../../src/corelib/tools/qscopedpointer.h:132:5: note: candidate function
          operator RestrictedBool() const Q_DECL_NOTHROW
          ^
      ./osx/osxbtutility_p.h:86:5: note: candidate function
          operator T*() const
          ^
      qbluetoothdevicediscoveryagent_ios.mm:181:9: error: conversion from 'QBluetoothDeviceDiscoveryAgentPrivate::LEDeviceInquiry' (aka 'ObjCScopedPointer<OSXBTLEDeviceInquiry>') to 'bool' is ambiguous
          if (inquiryLE)
              ^~~~~~~~~
      ./osx/osxbtutility_p.h:86:5: note: candidate function
          operator T*() const
          ^
      /[...]/src/qt/qtbase/include/QtCore/../../src/corelib/tools/qscopedpointer.h:132:5: note: candidate function
          operator RestrictedBool() const Q_DECL_NOTHROW
          ^
      3 errors generated.
      make[6]: *** [.obj/qbluetoothdevicediscoveryagent_ios.o] Error 1
      make[6]: *** Waiting for unfinished jobs....
      qlowenergycontroller_osx.mm:205:12: error: conversion from 'const QLowEnergyControllerPrivateOSX::CentralManager' (aka 'const ObjCScopedPointer<OSXBTCentralManager>') to 'bool' is ambiguous
          return centralManager || peripheralManager;
                 ^~~~~~~~~~~~~~
      ./osx/osxbtutility_p.h:86:5: note: candidate function
          operator T*() const
          ^
      /[...]/src/qt/qtbase/include/QtCore/../../src/corelib/tools/qscopedpointer.h:132:5: note: candidate function
          operator RestrictedBool() const Q_DECL_NOTHROW
          ^
      1 error generated. 

        Attachments

        For Gerrit Dashboard: QTBUG-76847
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              tpochep Timur Pocheptsov
              Reporter:
              misery André Klitzing
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes