Fixed compilation error when index is not an int (issue #381)

This commit is contained in:
Benoit Blanchon
2016-11-13 20:19:36 +01:00
parent 1ce16ce449
commit f28157cab7
5 changed files with 17 additions and 10 deletions

View File

@@ -44,6 +44,7 @@ struct CharPtrFuncs {
}
static const bool has_append = false;
static const bool has_equals = true;
static const bool should_duplicate = false;
};
@@ -56,6 +57,9 @@ struct StringFuncs<char*> : CharPtrFuncs {};
template <size_t N>
struct StringFuncs<char[N]> : CharPtrFuncs {};
template <size_t N>
struct StringFuncs<const char[N]> : CharPtrFuncs {};
template <typename TString>
struct StdStringFuncs {
template <typename Buffer>
@@ -76,6 +80,7 @@ struct StdStringFuncs {
}
static const bool has_append = true;
static const bool has_equals = true;
static const bool should_duplicate = true;
};
@@ -108,6 +113,7 @@ struct StringFuncs<const __FlashStringHelper*> {
}
static const bool has_append = false;
static const bool has_equals = true;
static const bool should_duplicate = true;
};
#endif