alesbe / sorting-visualizer

Sorting visualizer made with SFML and C++ 📊
MIT License
17 stars 11 forks source link

[BUG]: Source code doesn't compile. #29

Closed luki3122 closed 2 years ago

luki3122 commented 2 years ago

Describe you problem:

Source code doesn't compile.

Steps to reproduce (optional):

install.sh

Additional info (optional):

sorting-visualizer/src/SortController.h:27:33:

error: copying member subobject of type 'std::atomic' invokes deleted constructor std::atomic _interrupt = false;

sorting-visualizer/src/SortAlgorithms.cpp:215:11:

error: out-of-line definition of 'bogoSort' does not match any declaration in namespace 'algo' int algo::bogoSort(std::vector& sortElements, int timeSleep)

Possible fix (optional):

std::atomic _interrupt = { false }; Add required argument to bogosort

OS

alesbe commented 2 years ago

Thanks for your interest! I don't know how I didn't realize this before, I think that I had some issues with branches and messed up something.

Thanks again for fixing the issue yourself!, Also, using dev instead of main for the PR would be perfect, but don't worry about it :)