We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba8c5e commit af0e32bCopy full SHA for af0e32b
platform/include/platform/CircularBuffer.h
@@ -162,7 +162,7 @@ class CircularBuffer {
162
*
163
* @param src Data to be pushed to the buffer.
164
*/
165
- void push(const mbed::Span<const T>& src)
+ void push(mbed::Span<const T> src)
166
{
167
push(src.data(), src.size());
168
}
@@ -245,7 +245,7 @@ class CircularBuffer {
245
246
* @return The span with the size set to number of elements popped using the buffer passed in as the parameter.
247
248
- mbed::Span<T> pop(const mbed::Span<T>& dest)
+ mbed::Span<T> pop(mbed::Span<T> dest)
249
250
CounterType popped = pop(dest.data(), dest.size());
251
return mbed::make_Span(dest.data(), popped);
0 commit comments