diff --git a/include/pcp-cpp/pmda.hpp b/include/pcp-cpp/pmda.hpp index 34c4e5f..351111b 100644 --- a/include/pcp-cpp/pmda.hpp +++ b/include/pcp-cpp/pmda.hpp @@ -517,11 +517,11 @@ class pmda { // Check if any of the export flags were given. bool exported = false; #define PCP_CPP_EXPORT(type, func) \ - if (options.count("export-"type) > 0) { \ + if (options.count("export-" type) > 0) { \ if (supported_metrics.empty()) { \ supported_metrics = get_supported_metrics(); \ } \ - const string_vector &filenames = options.at("export-"type).as(); \ + const string_vector &filenames = options.at("export-" type).as(); \ for (string_vector::const_iterator iter = filenames.begin(); iter != filenames.end(); ++iter) { \ func(*iter); \ } \