mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-23 04:40:06 +00:00
12 lines
274 B
C++
12 lines
274 B
C++
#include <toml.hpp>
|
|
|
|
int read_a(const toml::table&);
|
|
|
|
int main()
|
|
{
|
|
const std::string content("a = 0");
|
|
std::istringstream iss(content);
|
|
const auto data = toml::parse(iss, "test_multiple_translation_unit.toml");
|
|
return read_a(toml::get<toml::table>(data));
|
|
}
|