Skip to content

Commit

Permalink
Merge pull request #29 from badone/wip-c++11
Browse files Browse the repository at this point in the history
Fix errors compiling with std=c++11
  • Loading branch information
pcolby authored Jun 23, 2016
2 parents 356973d + 817e66f commit e04a824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pcp-cpp/pmda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<string_vector>(); \
const string_vector &filenames = options.at("export-" type).as<string_vector>(); \
for (string_vector::const_iterator iter = filenames.begin(); iter != filenames.end(); ++iter) { \
func(*iter); \
} \
Expand Down

0 comments on commit e04a824

Please sign in to comment.