Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. std::reduce not known with C++17 enabled
Forum Updated to NodeBB v4.3 + New Features

std::reduce not known with C++17 enabled

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 1.2k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Asperamanca
    wrote on last edited by
    #1

    I have a large project in Creator, configured to use Qt 5.15.1 with MinGW 8.1.0 64bit.

    The project files has

    CONFIG += c++17
    

    However, Creator shows a semantic issue

    no member named 'reduce' in namespace 'std'
    

    Any ideas what I could try?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Asperamanca said in std::reduce not known with C++17 enabled:

      However, Creator shows a semantic issue

      QtCreator or the compiler?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      A 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        @Asperamanca said in std::reduce not known with C++17 enabled:

        However, Creator shows a semantic issue

        QtCreator or the compiler?

        A Offline
        A Offline
        Asperamanca
        wrote on last edited by
        #3

        @Christian-Ehrlicher
        QtCreator. Probably from the clang backend
        However, the selected kit is relevant, because switching to MSVC-based toolchain makes the semantic issue disappear.

        I have wondered whether
        a) Enabling c++17 for MinGW isn't that straightforward (been there in the past, but can't remember the details)
        b) The MinGW shipped with Qt 5.15.1 isn't fully c++17 compliant (I'd love to check the MinGW docs, but they are a right mess - there's nothing like an easy-to-find release notes list for version)

        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