mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 12:15:06 +03:00
acb42ac427
* new file: projects/github.com/skystrife/cpptoml/package.yml new file: projects/github.com/skystrife/cpptoml/tea.toml new file: projects/github.com/skystrife/cpptoml/test.cc * modified: projects/github.com/skystrife/cpptoml/package.yml * modified: projects/github.com/skystrife/cpptoml/package.yml * modified: projects/github.com/skystrife/cpptoml/package.yml * modified: projects/github.com/skystrife/cpptoml/package.yml * modified: projects/github.com/skystrife/cpptoml/package.yml * modified: projects/github.com/skystrife/cpptoml/package.yml
14 lines
No EOL
241 B
C++
14 lines
No EOL
241 B
C++
#include "cpptoml.h"
|
|
#include <iostream>
|
|
|
|
int main() {
|
|
auto tea = cpptoml::parse_file("tea.toml");
|
|
auto s = tea->get_as<std::string>("str");
|
|
|
|
if (s) {
|
|
std::cout << *s << std::endl;
|
|
return 0;
|
|
}
|
|
|
|
return 1;
|
|
} |