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

chore: Update CXX standard to 17 and add CMakeLists.txt to directories without them #2746

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

realstealthninja
Copy link
Collaborator

Description of Change

CMakeLists.txt changes

Some directories lack CMakeLists Thus giving any algorithms under those directories

  • dynamic_programming
  • greedy_algorithms
  • range_queries
  • operations_on_datastructures

So this pr focuses on the the inclusion of the CMakeLists file and fixing compilation problems
associated with the inclusion of the directories

File renames

some files had to be renamed due to file name conflicts with pre-existing files. I would love feedback on the names. These algorithms are duplicates with alot of history associated with them removing them seemed like not my decision to make.

Code changes

Some older code was updated very slightly just enough to make them compile as the scope of this pr is not part of #2456

Standard updated

This is the part of the pr where I explain my thought process behind this update in such a minor pr.

here are some of my arguments:

  • Some algorithms in the repository use newer features from newer standards
  • The Readme mentions compatibility with esp32 & arm cortex however they already use newer standards
  • C++11 is 13 years old
  • People learn using C++17 it only makes sense for us to provide algorithms showcasing newer features

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes: zero regressions were made, all files compile

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

Successfully merging this pull request may close these issues.

1 participant