diff options
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"; } } |