Cpp - toml++ introduction














































Cpp - toml++ introduction



Description:

Toml++ is a toml parser and serializer for modern C++.(for ex. parsing strings,files etc).

It has full support serializing to JSON and has proper UTF-8 handling.

It works with or without exceptions and doesn't require RTTI (Run-time Type Information) to work.

It however doesn't handles BOMs(byte order mark) and works as a shared pointer.

Prerequisites:

Since it is only a header file, it doesn't require much prerequisites making it easy to use and

lightweight.

Sample Program:

The following sample code shows an example of parsing files using toml++.

#include<fstream> is needed as an additional header to parse files.

toml::parse_error is used to handle thrown errors.



Comments