WSL/SLF GitLab Repository

Commit 6ceeafed authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Small things that were making vc++ unhappy...

parent c8083e61
......@@ -305,7 +305,7 @@ void ALPUG::readMetoFile(const size_t& station_index, const Date& dateStart, con
}
for (int year=start_year; year<=end_year; ++year) {
stringstream ss;
ostringstream ss;
ss << year;
const std::string filename( ss.str().substr(2,2) + station_id + dflt_extension );
if (std::find(dirlist.begin(), dirlist.end(), filename) == dirlist.end()) //this file does not exist
......
......@@ -1333,7 +1333,7 @@ void SMETReader::copy_file_data(const std::string& date_stop, std::ifstream& fin
if (SMETCommon::readLineToVec(line, tmp_vec) == nr_of_data_fields) {
const string& current_timestamp = tmp_vec[timestamp_field];
const size_t cmp_len = std::min(date_stop_len, current_timestamp.length());
const size_t cmp_len = min(date_stop_len, current_timestamp.length());
if (current_timestamp.compare(0, cmp_len, date_stop) >= 0) break;
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment