Closed scspijker closed 10 months ago
Can you please try the following code? My compiler doesn't complain at all...
#include <CircularBuffer.h>
CircularBuffer<int, 10> *buffers[] = {
&CircularBuffer<int, 10>(), &CircularBuffer<int, 10>(), &CircularBuffer<int, 10>()
};
void setup() { }
void loop() {
buffers[0]->push(3);
buffers[1]->push(3);
buffers[2]->push(3);
buffers[2]->size();
}
This issue is being marked as stale as it has not been updated in the past 15 days and it will be closed in a week unless it receives the requested attention.
Issue is being closed due to lack of interaction
I would like to store a number of buffers, and access them anonymously through the array. However, I cannot find a way to do this...
What I expected to be able to do:
But this results in:
So I tried using pointers:
But this results in
Can anybody tell me how to use this class in an array in such a way I can access the array subset operator
[<index>]
? Thanks!