mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-14 01:47:54 +08:00
I always have compiler problems when using operator[](unsigned) when I pass int instead, so I added a note to the comments.
This commit is contained in:
parent
9f8abcb258
commit
f4b73938d2
@ -271,8 +271,12 @@ namespace Json {
|
|||||||
/// Access an array element (zero based index ).
|
/// Access an array element (zero based index ).
|
||||||
/// If the array contains less than index element, then null value are inserted
|
/// If the array contains less than index element, then null value are inserted
|
||||||
/// in the array so that its size is index+1.
|
/// in the array so that its size is index+1.
|
||||||
|
/// (You may need to say 'value[0u]' to get your compiler to distinguish
|
||||||
|
/// this from the operator[] which takes a string.)
|
||||||
Value &operator[]( UInt index );
|
Value &operator[]( UInt index );
|
||||||
/// Access an array element (zero based index )
|
/// Access an array element (zero based index )
|
||||||
|
/// (You may need to say 'value[0u]' to get your compiler to distinguish
|
||||||
|
/// this from the operator[] which takes a string.)
|
||||||
const Value &operator[]( UInt index ) const;
|
const Value &operator[]( UInt index ) const;
|
||||||
/// If the array contains at least index+1 elements, returns the element value,
|
/// If the array contains at least index+1 elements, returns the element value,
|
||||||
/// otherwise returns defaultValue.
|
/// otherwise returns defaultValue.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user