diff options
author | pommicket <pommicket@gmail.com> | 2025-09-16 15:02:39 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-16 15:02:39 -0400 |
commit | 7ededc16f36099acbfac457f8e4e268879b0ce62 (patch) | |
tree | 35543f851383a5002566b3b0a8ea5f38d97e94c7 /cpp/examples | |
parent | 76f68d6c93b55f9cd96a369bf2e5785ed16fa184 (diff) |
Finish up implementation of C++ library
Diffstat (limited to 'cpp/examples')
-rw-r--r-- | cpp/examples/read_conf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/examples/read_conf.cpp b/cpp/examples/read_conf.cpp index 0a7ef51..df5d3aa 100644 --- a/cpp/examples/read_conf.cpp +++ b/cpp/examples/read_conf.cpp @@ -3,13 +3,13 @@ int main(void) { try { - pom::Configuration conf = pom::Configuration("conf.pom"); + pom::Configuration conf = pom::Configuration("conf.pom", nullptr); auto indentation_type = conf.get("indentation-type"); if (indentation_type.has_value()) std::cout << "Indenting with " << indentation_type.value() << "\n"; else std::cout << "No indentation type set!\n"; } catch (pom::Error &error) { - std::cerr << error.what() << "\n"; + std::cerr << error << "\n"; } } |