Reduced generator size. Fixed Visual Studio warnings

This commit is contained in:
Benoit Blanchon
2015-08-19 16:08:19 +02:00
parent ef2641b49b
commit 39c506b419
10 changed files with 34 additions and 37 deletions

View File

@ -16,13 +16,6 @@ class JsonArraySubscript : public JsonSubscriptBase<JsonArraySubscript> {
using JsonSubscriptBase::operator=;
FORCE_INLINE JsonArraySubscript& operator=(const JsonArraySubscript& other) {
// to prevent Visual Studio warning C4512: assignment operator could not be
// generated
_array.set(_index, other._array.get(other._index));
return *this;
}
FORCE_INLINE bool success() const { return _index < _array.size(); }
FORCE_INLINE operator JsonVariant() const { return _array.get(_index); }