pantry/projects/github.com/skystrife/cpptoml/test.cc
Andrew acb42ac427
github.com/skystrife/cpptoml (#1866)
* 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
2023-05-07 16:21:32 -04:00

14 lines
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;
}