Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Solution to error qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression.

Solution to error qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression.

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 4.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zwcloud
    wrote on last edited by
    #1

    Re: Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5

    According to this email list message: https://lists.qt-project.org/pipermail/development/2018-August/033409.html

    Applying this commit to qalgorithms.h should fix this error. I ran into this issue when building cmake-gui: https://gitlab.kitware.com/cmake/cmake/issues/19511

    This issue is still happening in Qt 5.10.1 with VS2017 15.9.13. @Qt5 devs

    K JKSHJ 2 Replies Last reply
    0
    • Z zwcloud

      Re: Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5

      According to this email list message: https://lists.qt-project.org/pipermail/development/2018-August/033409.html

      Applying this commit to qalgorithms.h should fix this error. I ran into this issue when building cmake-gui: https://gitlab.kitware.com/cmake/cmake/issues/19511

      This issue is still happening in Qt 5.10.1 with VS2017 15.9.13. @Qt5 devs

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @zwcloud

      Hi and welcome to devnet forum

      This is a pure user forum and it is not monitored for bug reports. You need to check on the bug report tool https://bugreports.qt.io/secure/Dashboard.jspa and eventually report there. Otherwise it is going to be lost. When you find the bug report, please the number resp the link to it here. Others may vote on it for increasing the importance for a solution.

      Vote the answer(s) that helped you to solve your issue(s)

      aha_1980A 1 Reply Last reply
      3
      • K koahnig

        @zwcloud

        Hi and welcome to devnet forum

        This is a pure user forum and it is not monitored for bug reports. You need to check on the bug report tool https://bugreports.qt.io/secure/Dashboard.jspa and eventually report there. Otherwise it is going to be lost. When you find the bug report, please the number resp the link to it here. Others may vote on it for increasing the importance for a solution.

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @koahnig The bugreport is QTBUG-67259.

        @zwcloud: You can comment on the bugreport, but there will be no more 5.10 releases. If the problem still occurs in the 5.9, 5.12, or 5.13 branch, there might be some more fix needed.

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply
        3
        • Z zwcloud

          Re: Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5

          According to this email list message: https://lists.qt-project.org/pipermail/development/2018-August/033409.html

          Applying this commit to qalgorithms.h should fix this error. I ran into this issue when building cmake-gui: https://gitlab.kitware.com/cmake/cmake/issues/19511

          This issue is still happening in Qt 5.10.1 with VS2017 15.9.13. @Qt5 devs

          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          @zwcloud said in Solution to error qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression.:

          This issue is still happening in Qt 5.10.1 with VS2017 15.9.13. @Qt5 devs

          How about on Qt 5.12.4 LTS or Qt 5.13.0?

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          Z 1 Reply Last reply
          1
          • JKSHJ JKSH

            @zwcloud said in Solution to error qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression.:

            This issue is still happening in Qt 5.10.1 with VS2017 15.9.13. @Qt5 devs

            How about on Qt 5.12.4 LTS or Qt 5.13.0?

            Z Offline
            Z Offline
            zwcloud
            wrote on last edited by zwcloud
            #5

            @JKSH Haven't tried that yet.

            I should say it astonished me that Qt forum is such an active community. I had thought Qt is dying HaHa.

            JKSHJ 1 Reply Last reply
            1
            • Z zwcloud

              @JKSH Haven't tried that yet.

              I should say it astonished me that Qt forum is such an active community. I had thought Qt is dying HaHa.

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              @zwcloud said in Solution to error qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression.:

              I should say it astonished me that Qt forum is such an active community. I had thought Qt is dying HaHa.

              Qt is most definitely growing!

              https://simplywall.st/stocks/fi/software/hel-qtcom/qt-group-oyj-shares

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              aha_1980A 1 Reply Last reply
              1
              • JKSHJ JKSH

                @zwcloud said in Solution to error qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression.:

                I should say it astonished me that Qt forum is such an active community. I had thought Qt is dying HaHa.

                Qt is most definitely growing!

                https://simplywall.st/stocks/fi/software/hel-qtcom/qt-group-oyj-shares

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @JKSH said in Solution to error qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression.:

                @zwcloud said in Solution to error qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression.:

                I should say it astonished me that Qt forum is such an active community. I had thought Qt is dying HaHa.

                Qt is most definitely growing!

                https://simplywall.st/stocks/fi/software/hel-qtcom/qt-group-oyj-shares

                That is amazing! Why didn't I buy Qt stocks in January?!

                Qt has to stay free or it will die.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved