boostorg / boostorg/json

Investigate better approach to value to string-ish comparison

Open
#673 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
479
Forks
110
Avg merge
10d 3h
Merged PRs (30d)
5

Description

Currently:
```c++
friend
bool
operator==(
value const& lhs,
value const& rhs) noexcept
{
return lhs.equal(rhs);
}
```

Thus, `jv == "some string"` is equivalent to `jv == value("some string")`, which allocates.
Consider adding an overload similar to one for `string` .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.