WIP: error: use of parameter from containing function#3
WIP: error: use of parameter from containing function#3edbird wants to merge 1 commit intoQuuxplusone:masterfrom
Conversation
| #define FIXED_RING_H | ||
|
|
||
| #include "ring_view.h" | ||
| #include "ring_span.h" |
There was a problem hiding this comment.
I assume that ring_view was supposed to be ring_span here?
| @@ -0,0 +1,68 @@ | |||
| add_executable( | |||
There was a problem hiding this comment.
Not all of these will compile/run and work (yet). I have not yet fixed up each of the test files.
|
|
||
| Container ctr_; | ||
| ring_view<T> rv_; | ||
| ring_span<T> rv_; |
There was a problem hiding this comment.
I guess you've discovered that I didn't write any tests for "fixed_ring.h", huh? :)
The syntax error on line 112 is that noexcept(Container(std::forward<Args>(args)...)) should be noexcept(noexcept(Container(std::forward<Args>(args)...))) — yes, "noexcept noexcept" is correct, and what's there now is a dumb typo.
Pull requests for these simple typos/thinkos are welcome.
Pull requests for better testing are admirable, if perhaps not a good use of your time.
Pull requests for CMake support are highly unlikely to be accepted.
Have you looked at https://github.com/nonstd-lite/ring-span-lite ? I'd recommend his over mine, unless you've found something less-good about his.
Hi,
I became interested in this project while searching for a ring buffer library. This seemed like it might be close to what I was looking for, which is something very simple.
I have attempted to convert the project to CMake so that it can be integrated into an existing CMake project using CMake's inbuilt mechanism to fetch dependencies from Github.
I get as far as this:
Any idea what causes this or what the fix might be? I assume this used to compile and that the error is caused by changing the C++ version to C++ 23.