Skip to content

series of improvements to this library#13

Open
lightyear15 wants to merge 5 commits intoBlockchainCommons:masterfrom
lightyear15:misc
Open

series of improvements to this library#13
lightyear15 wants to merge 5 commits intoBlockchainCommons:masterfrom
lightyear15:misc

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 pushed a commit to Blockstream/esp32_bc-ur that referenced this pull request May 15, 2024
greenaddress pushed a commit to Blockstream/esp32_bc-ur that referenced this pull request May 15, 2024
jgriffiths pushed a commit to Blockstream/esp32_bc-ur that referenced this pull request Oct 3, 2025
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

Comments