C ++ library: Boost 1.75 brings JSON parsers, error handling and reflection

Source: Heise.de added 14th Dec 2020

  • c-++-library:-boost-1.75-brings-json-parsers,-error-handling-and-reflection

The team behind the C ++ library Boost has released version 1. 75 of the project. In addition to numerous bug fixes and additions to the existing sub-libraries, the release has three new libraries on board, which are dedicated to processing JSON content, handling errors and reflecting on user-defined types.

There are currently problems with the interaction with the current C ++ standard. Content from the Boost library is regularly incorporated into the standard, and vice versa, the library takes current concepts into account. Like the previous versions, the current release also brings some fixes for the C ++ 20 compatibility. However, Boost Operators are currently incompatible with C ++ 16 compilers, which leads to infinite loops or recursions with comparison operators Runtime.

Data format and luck path The library Boost.JSON offers functions for parsing, serializing JSON content and processing the DOM (Document Object Model) of data in JSON format. On the standard side, the library only needs C ++ 11, and it can be used without the complete boost package compile what the definition of BOOST_JSON_STANDALONE is used for. In addition, only the headers can optionally be included.

The acronym of the sub-library Boost.LEAF stands for Lightweight Error Augmentation Framework. It is lean with a single header and no dependencies. It uses the concept of test paths with a happy path for working code sections and a sad path for errors that occur. LEAF can be used for multithreading applications and works both with and without exception handling. Like the JSON library, it is based on C ++ 11.

Lean reflection and time of origin Finally, the Boost.PFR library offers simple reflection functions for user-defined types. The acronym stands for Precise and Flat Reflection, and the library dispenses with boilerplate code and macros. It returns the elements requested via an index and offers methods that are based on std :: tuple . Boost.PFR works from C ++ 14.

At the 21. January 2021 takes place the online conference betterCode () C ++ 20, in which everything revolves around the current C ++ standard. Bjarne Stroustrup, the father of the programming language, is on board, among other things, answering all questions about C ++ in an Ask-Me-Anything session.

Other lectures revolve around innovations such as modules, Concepts, Corountines, the Ranges Library and Strong Typing.

By 16. December 2020 tickets are available at the early bird price.

There is also a new function in the extensive library Boost.Filesystem V3: creation_time gives access to the time at which a file was created.

Boost for twenty years Members of the C ++ standardization committee have in the year 2000 founded the Boost project. The main aim was to make suggestions for extensions to the programming language available to the public and thus enable practical tests before innovations were incorporated into the standard. In the last twenty years, however, Boost has developed a relevant life of its own in the C ++ universe, independent of the standardization proposals, and has established itself as an important library collection.

Further details can be found in the announcement of Boost 1. 75 remove. The library is available on the download page in different formats for Windows and Unix.

(rme)

Read the full article at Heise.de

brands: Boost  CODE  New  other  RME  Team  
media: Heise.de  
keywords: Windows  

Related posts


Notice: Undefined variable: all_related in /var/www/vhosts/rondea.com/httpdocs/wp-content/themes/rondea-2-0/single-article.php on line 88

Notice: Undefined variable: all_related in /var/www/vhosts/rondea.com/httpdocs/wp-content/themes/rondea-2-0/single-article.php on line 88

Related Products



Notice: Undefined variable: all_related in /var/www/vhosts/rondea.com/httpdocs/wp-content/themes/rondea-2-0/single-article.php on line 91

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/rondea.com/httpdocs/wp-content/themes/rondea-2-0/single-article.php on line 91