Memory streams - Fixed FixedBuffer template

This commit is contained in:
Emmanuel BENOîT 2020-09-27 11:04:00 +02:00
parent 8a19374d3f
commit b8db177012
2 changed files with 4 additions and 4 deletions
include/ebcl/inline

View file

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