mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 12:15:06 +03:00
14 lines
241 B
C++
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;
|
||
|
}
|