mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +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;
|
||
|
}
|