Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • aGrUM aGrUM
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • agrumery
  • aGrUMaGrUM
  • Issues
  • #88
Closed
Open
Created Apr 13, 2022 by Julien Schueller@jschuellerDeveloper

error: use of deleted function

since 0.22.9 otagrum errors with:

 /usr/x86_64-w64-mingw32/include/agrum/tools/multidim/utils/operators/completeProjectionRegister4MultiDim_tpl.h:102:49: error: use of deleted function ‘std::atomic<bool>::atomic(const std::atomic<bool>&)’
  102 |     static std::atomic< bool >                  first                 = true;

because of some std::atomic copy ctors:

static std::atomic< bool > first = true;

I'm guessing that this is only allowed in c++20 and otagrum still builds with the default c++17

So either agrum should export it cxx standard properly: https://cmake.org/cmake/help/v3.13/manual/cmake-compile-features.7.html#requiring-language-standards

.. or be compatible with c++17, as the build can be fixed with simply:

static std::atomic< bool > first = {true};

what I dont understand is that it only happens on mingw, not native linux

Edited Apr 13, 2022 by Julien Schueller
Assignee
Assign to
Time tracking