Skip to content

Commit

Permalink
fix clang compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Wittgen committed Apr 29, 2021
1 parent d836be0 commit 74a02b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1060,10 +1060,10 @@ void writeKeyFromProperty(Fits &fits, daf::base::PropertySet const &metadata, st
} else {
writeKeyImpl(fits, key.c_str(), metadata.get<std::string>(key), comment);
}
} else if (valueType == typeid(nullptr_t)) {
} else if (valueType == typeid(std::nullptr_t)) {
if (metadata.isArray(key)) {
// Write multiple undefined values for the same key
auto tmp = metadata.getArray<nullptr_t>(key);
auto tmp = metadata.getArray<std::nullptr_t>(key);
for (std::size_t i = 0; i != tmp.size(); ++i) {
writeKeyImpl(fits, key.c_str(), comment);
}
Expand Down

0 comments on commit 74a02b9

Please sign in to comment.