From 7ededc16f36099acbfac457f8e4e268879b0ce62 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 16 Sep 2025 15:02:39 -0400 Subject: Finish up implementation of C++ library --- cpp/examples/read_conf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/examples/read_conf.cpp') 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"; } } -- cgit v1.2.3