-
Notifications
You must be signed in to change notification settings - Fork 12
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
nonstd::ring
with a fixed array type as the container
#33
Comments
I have no meaningful opinion on the actual feature request, but I'll just leave this here: |
@Crzyrndm Thanks for the heads-up. Enabling the use of a C-array as template parameters requires some more work. |
@Crzyrndm C-array and So now one can write:
|
Completed. |
ring
type here being the owning buffer that wraps a container and aring_span
. Right now thering
type is unable to use a fixed size array as the backing container because the only constructor requires a capacity argumenthttps://github.com/martinmoene/ring-span-lite/blob/master/include/nonstd/ring.hpp#L51-L54
all that is required to support
ring<std::array<T, N>>
is conditionally adding a default ctor (I've made it conditional on not having awith_capacity
ctor here)https://github.com/Crzyrndm/ring-span-lite/blob/array-ctor/include/nonstd/ring.hpp#L52-L56`
Built in / C array support would probably only require changing
.begin()/end()
tostd::begin/end
Not sure if that's the right condition to use but it's working for the moment
The text was updated successfully, but these errors were encountered: