• Philipp A. Hartmann's avatar
    GenericValue::AddMember<T>: add missing overload (closes #254) · 06c3ddba
    Philipp A. Hartmann authored
    As discovered by @felipegb94, there are missing overloads to the
    `GenericValue::AddMember<T>` template function, taking an explicit
    `GenericValue&` as a name and accepting arbitrary primitive values.
    
    This patch adds the missing overloads. The `StringRefType` overload
    is needed to disambiguate the addition of a string literal as
    value.
    
    Some tests are added to `TEST(Value, Object)` in `valuetest.cpp`.
    06c3ddba
Name
Last commit
Last update
CMakeModules Loading commit data...
bin 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...
CMakeLists.txt Loading commit data...
RapidJSON.pc.in Loading commit data...
RapidJSONConfig.cmake.in Loading commit data...
RapidJSONConfigVersion.cmake.in Loading commit data...
appveyor.yml Loading commit data...
license.txt Loading commit data...
readme.md Loading commit data...
travis-doxygen.sh Loading commit data...