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

series of improvements to this library #13

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

Conversation

lightyear15
Copy link

in short:

  • adding cmake to the project
  • removing const qualifier in return types
  • removing final from main classes
  • UR::UR constructor using std::move
  • general improvements to code ( C-style arrays to std::array, NULL --> nullptr, and such)

also adding a github workflow task that compiles, runs tests and
installs the produced artifacts
it practically does not enforce any sort of const-correctness while
polluting the code.
even though syntatically correct, it does make little sense on classes
that reprensent front-end APIs of this library for different reasons.
On one side, as these classes have no virtual methods and no protected member
variables, they and their internal machineries are already shielded
against weird uses.
Secondly, preventing this library's users to use these classes as base class
does not put library authors under any further future obligation of not
deprecating old code, or changing APIs.
replacing C-style arrays with std::array
adding const-qualified autos
removing return types
replacing typedefs with usings
replacing NULL with nullptr
greenaddress added a commit to Blockstream/esp32_bc-ur that referenced this pull request May 15, 2024
greenaddress added a commit to Blockstream/esp32_bc-ur that referenced this pull request May 15, 2024
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