Skip to content

Commit 6dab497

Browse files
committed
Update README and tweak syntax in Boost.JSON adapter
1 parent 2ecd211 commit 6dab497

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ When building the test suite, Boost 1.54, Qt 5 and Poco are optional dependencie
206206
Valijson supports JSON documents loaded using various JSON parser libraries. It has been tested against the following versions of these libraries:
207207

208208
- [boost::property_tree 1.54](http://www.boost.org/doc/libs/1_54_0/doc/html/boost_propertytree/synopsis.html)
209+
- [Boost.JSON 1.75](https://www.boost.org/doc/libs/1_75_0/libs/json/doc/html/index.html)
209210
- [json11 (commit afcc8d0)](https://github.com/dropbox/json11/tree/afcc8d0d82b1ce2df587a7a0637d05ba493bf5e6)
210211
- [jsoncpp 1.9.4](https://github.com/open-source-parsers/jsoncpp/archive/1.9.4.tar.gz)
211212
- [nlohmann/json 1.1.0](https://github.com/nlohmann/json/archive/v1.1.0.tar.gz)

include/valijson/adapters/boost_json_adapter.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ class BoostJsonArray
7575
* an array.
7676
*/
7777
explicit BoostJsonArray(const boost::json::value &value)
78-
: m_value(value.as_array()) {
78+
: m_value(value.as_array())
79+
{
7980
// boost::json::value::as_array() will already have thrown an exception
8081
// if the underlying value is not an array
81-
}
82+
}
8283

8384
/**
8485
* @brief Return an iterator for the first element of the array.

0 commit comments

Comments
 (0)