fix logger for ring buffer
This commit is contained in:
parent
bc04dc09e9
commit
f7e7716df9
@ -12,7 +12,7 @@ auto main(int argc, char *argv[]) -> int
|
||||
{
|
||||
// patterns::ring_buffer
|
||||
{
|
||||
hack::patterns::ring_buffer<int, 10> rb;
|
||||
hack::patterns::ring_buffer<int> rb(10);
|
||||
for (int i = 1; i < 12; ++i) rb.put(i);
|
||||
hack::log()(rb);
|
||||
}
|
||||
|
@ -135,8 +135,8 @@ namespace hack
|
||||
std::cout << data << (count != 0 ? devider : "");
|
||||
}
|
||||
|
||||
template<typename T, std::size_t size>
|
||||
static void print_t(const hack::patterns::ring_buffer<T, size>& rb)
|
||||
template<typename T>
|
||||
static void print_t(const hack::patterns::ring_buffer<T>& rb)
|
||||
{
|
||||
print_t(rb.get_src());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user