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( ) ) { }