Added missing constructor.

This commit is contained in:
John Wellbelove 2016-06-18 08:01:09 +01:00
parent 70ea403c7b
commit ac2fcf6f2f

View File

@ -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.