mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Added missing constructor.
This commit is contained in:
parent
70ea403c7b
commit
ac2fcf6f2f
@ -49,13 +49,13 @@ SOFTWARE.
|
||||
|
||||
namespace etl
|
||||
{
|
||||
template <typename T, const size_t MAX_SIZE_>
|
||||
//***************************************************************************
|
||||
/// A basic_string implementation that uses a fixed size buffer.
|
||||
///\tparam T The element type.
|
||||
///\tparam MAX_SIZE_ The maximum number of elements that can be stored.
|
||||
///\ingroup basic_string
|
||||
//***************************************************************************
|
||||
template <typename T, const size_t MAX_SIZE_>
|
||||
class basic_string : public ibasic_string<T>
|
||||
{
|
||||
public:
|
||||
@ -71,17 +71,6 @@ namespace etl
|
||||
ibasic_string<T>::initialise();
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
/// Constructor, with size.
|
||||
///\param initialSize The initial size of the basic_string.
|
||||
//*************************************************************************
|
||||
explicit basic_string(size_t count, T c)
|
||||
: ibasic_string<T>(reinterpret_cast<T*>(&buffer), MAX_SIZE)
|
||||
{
|
||||
ibasic_string<T>::initialise();
|
||||
ibasic_string<T>::resize(initialSize);
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
/// Constructor, from null terminated text.
|
||||
///\param text The initial text of the basic_string.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user