Fix default function templates for C++03

This commit is contained in:
John Wellbelove 2021-03-10 18:38:02 +00:00
parent 38c07875b7
commit 206c080866

View File

@ -147,7 +147,7 @@ namespace etl
///\param first The iterator to the first element.
///\param last The iterator to the last element + 1.
//*************************************************************************
template <typename TIterator>
template <typename TIterator, typename etl::enable_if<!etl::is_integral<TIterator>::value, int>::type = 0>
string(TIterator first, TIterator last)
: istring(reinterpret_cast<value_type*>(&buffer), MAX_SIZE)
{