mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-30 07:50:07 +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);
|
|
}
|