#include #include #include #include // g++ tomldemo.cpp -I ../libs/tomlplusplus -std=c++17 using namespace std::literals; int main(int argc, char** argv) { toml::table tbl; try { tbl = toml::parse_file("config.ini"); std::cout << tbl << "\n"; } catch (const toml::parse_error& err) { std::cerr << "Parsing failed:\n" << err << "\n"; return 1; } return 0; }