You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4 overloads of `AddMember()` is reduced to 3.
Use copy string name by default to prevent user accidentally do the
wrong thing.
User may still use `AddMember(Value("Hello"), v)` for constant string
name.
Resolves#38
In upstream issue 66,
user misuse the
AddMember()
API:lvl.c_str()
is a temp string, it needs to be duplicated, otherwise when the function returns the pointer become invalid.For this situation, the user should call
But it may be confusing for user.
All overloads of
AddMember(const char* name,... )
assume the name being literal string, no need for making copies. But it may be misused like this.Any suggestion to improve the API for DOM manipulation?
The text was updated successfully, but these errors were encountered: