Skip to content

Commit

Permalink
Remove remaining warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Feb 20, 2024
1 parent 78e0d3c commit dc82379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terrain_navigation/src/data_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ void DataLogger::writeToFile(const std::string path) {

for (auto data : data_list_) {
for (auto key : keys_) {
if (std::string* s = std::any_cast<std::string>(&data.at(key))) {
if (std::any_cast<std::string>(&data.at(key))) {
output_file << std::any_cast<std::string&>(data.at(key)) << field_seperator;
} else if (double* i = std::any_cast<double>(&data.at(key))) {
} else if (std::any_cast<double>(&data.at(key))) {
output_file << std::any_cast<double&>(data.at(key)) << field_seperator;
}
}
Expand Down

0 comments on commit dc82379

Please sign in to comment.