mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-27 06:40:06 +00:00
12 lines
250 B
C++
12 lines
250 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(data);
|
|
}
|