Closed SergioRAgostinho closed 1 year ago
Yes please, merge this PR! :pray:
Or at least keep both the methods/add const
to the get_const
, otherwise const-correctness of get_const
is broken.
Thanks!
Looks good to me. :smile:
Addressed in #64 - Thanks for your PR! I just didn't have time to look at these until recently.
In this PR I'm proposing to create a const qualified
get
forBuffer
and remove the explicitly namedget_const
method. It's unconventional to provide a const version of the same method with a different name. This way, your users just need to callbuffer.get()
, and the correct version will be used depending on whetherbuffer
isconst
or not.I also had to rename
FALSE
tofalse
in the unit tests, asFALSE
is not defined by gcc.Edit: I'm suggesting changes to the public API because I believe these have not been released yet.