From b8db17701242f7e28d291cbe5dd1787b2cc6a8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sun, 27 Sep 2020 11:04:00 +0200 Subject: [PATCH] Memory streams - Fixed FixedBuffer template --- include/ebcl/MemoryStreams.hh | 4 ++-- include/ebcl/inline/MemoryStreams.hh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ebcl/MemoryStreams.hh b/include/ebcl/MemoryStreams.hh index 4f30454..6b99327 100644 --- a/include/ebcl/MemoryStreams.hh +++ b/include/ebcl/MemoryStreams.hh @@ -22,7 +22,7 @@ class T_MemoryInputStream final : public A_InputStream T_MemoryInputStream& operator= ( T_MemoryInputStream const& other ) noexcept; - template< int S , typename T > + template< size_t S , typename T > explicit T_MemoryInputStream( T_FixedBuffer< S , T > const& buffer ); template< typename T > @@ -49,7 +49,7 @@ class T_MemoryOutputStream final : public A_OutputStream T_MemoryOutputStream( void* buffer , size_t size , F_Resizer resizer = nullptr ); T_MemoryOutputStream( T_MemoryOutputStream&& source ) noexcept; - template< int S , typename T > + template< size_t S , typename T > explicit T_MemoryOutputStream( T_FixedBuffer< S , T >& buffer ); template< typename T > diff --git a/include/ebcl/inline/MemoryStreams.hh b/include/ebcl/inline/MemoryStreams.hh index 3435017..647dd93 100644 --- a/include/ebcl/inline/MemoryStreams.hh +++ b/include/ebcl/inline/MemoryStreams.hh @@ -10,7 +10,7 @@ namespace ebcl { /*= T_MemoryInputStream ======================================================*/ -template< int S , typename T > +template< size_t S , typename T > inline T_MemoryInputStream::T_MemoryInputStream( T_FixedBuffer< S , T > const& buffer ) : T_MemoryInputStream( buffer.data( ) , buffer.bytes( ) ) { } @@ -23,7 +23,7 @@ inline T_MemoryInputStream::T_MemoryInputStream( T_Buffer< T > const& buffer ) /*= T_MemoryOutputStream =====================================================*/ -template< int S , typename T > +template< size_t S , typename T > inline T_MemoryOutputStream::T_MemoryOutputStream( T_FixedBuffer< S , T >& buffer ) : T_MemoryOutputStream( buffer.data( ) , buffer.bytes( ) ) { }