diff options
author | Sven Gothel <[email protected]> | 2021-10-23 06:53:55 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-10-23 06:53:55 +0200 |
commit | 19cb99e7225cd2057fbaed6b6c6adcdd1775831d (patch) | |
tree | 327186d27ba56d0b405630fa43ac84c7840b572a /test/test_lfringbuffer01.cpp | |
parent | aca6d33271b327b0a282f8059182ed80448d766d (diff) |
Apply same Non-Type Template Parameter of darray; Drop new[] C++ array storage for more efficient placement-new ctor/dtor (like darray)
Diffstat (limited to 'test/test_lfringbuffer01.cpp')
-rw-r--r-- | test/test_lfringbuffer01.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_lfringbuffer01.cpp b/test/test_lfringbuffer01.cpp index 673e702..998251a 100644 --- a/test/test_lfringbuffer01.cpp +++ b/test/test_lfringbuffer01.cpp @@ -185,7 +185,8 @@ class TestRingbuffer01 { ", uses_memset "+std::to_string(TrivialTypeRingbuffer::uses_memset)+ ", trivially_copyable "+std::to_string(std::is_trivially_copyable<typename TrivialTypeRingbuffer::value_type>::value)+ ", size "+std::to_string(sizeof(rb))+" bytes"); - fprintf(stderr, "%s", msg.c_str()); + fprintf(stderr, "%s\n", msg.c_str()); + fprintf(stderr, "%s\n", rb.get_info().c_str()); REQUIRE_MSG("Ringbuffer<T> using memcpy", TrivialTypeRingbuffer::uses_memcpy); REQUIRE_MSG("Ringbuffer<T> uses memset", TrivialTypeRingbuffer::uses_memset); } |