Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: ‘make_unique’ is not a member of ‘std’ #2

Open
Anonymous3-a opened this issue Jun 21, 2024 · 0 comments
Open

error: ‘make_unique’ is not a member of ‘std’ #2

Anonymous3-a opened this issue Jun 21, 2024 · 0 comments

Comments

@Anonymous3-a
Copy link

I was compiling this, and it said

/home/ilikecats/src/CpuVoxelRaycaster/lib/swarm/swarm.hpp: In member function ‘swrm::WorkGroup swrm::Swarm::execute(swrm::WorkerFunction, uint32_t)’:
/home/ilikecats/src/CpuVoxelRaycaster/lib/swarm/swarm.hpp:225:39: error: ‘make_unique’ is not a member of ‘std’
  225 |                 return WorkGroup(std::make_unique<ExecutionGroup>(job, group_size, m_available_workers));
      |                                       ^~~~~~~~~~~
/home/ilikecats/src/CpuVoxelRaycaster/lib/swarm/swarm.hpp:225:39: note: ‘std::make_unique’ is only available from C++14 onwards

I tried adding set(CMAKE_CXX_STANDARD 17) to CMakeLists.txt but it didn't work.
How can I fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant