• Philipp A. Hartmann's avatar
    GenericValue: improve operator[] disambiguation · e8445e0b
    Philipp A. Hartmann authored
    In the original disambiguation fix for `GenericValue::operator[]` (#170),
    the documentation has been missing, which led to quite badly rendered
    Doxygen pages.
    
    During a cleanup, I've realized that a much simpler disambiguation is
    possible:
    
    ````cpp
      GenericValue& operator[](SizeType idx); // array
      template <typename T>
      GenericValue& operator[](T* name);      // object
    ````
    
    This approach works, as non-template functions are preferred over
    template functions.
    
    In order to improve the error messages, the pointer type is restricted
    to `(const) Ch`.
    
    Update `tutorial.md` to drop the ambiguity warning.
    e8445e0b
Name
Last commit
Last update
bin Loading commit data...
build Loading commit data...
doc Loading commit data...
example Loading commit data...
include/rapidjson Loading commit data...
test Loading commit data...
thirdparty Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.travis.yml Loading commit data...
license.txt Loading commit data...
readme.md Loading commit data...