Skip to content
Snippets Groups Projects
Commit c9fada24 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Include missing header <algorithm>

parent d23e957e
No related branches found
No related tags found
1 merge request!225M214003/develop
#include "cdo_module.h"
#include "cdo_output.h"
#include <algorithm>
oper_t::oper_t() : help(default_help) {}
oper_t::oper_t(const char *_name, int _f1, int _f2, const char *_enter)
......@@ -14,10 +16,12 @@ oper_t::oper_t(const char *_name, int _f1, int _f2, const char *_enter, const Cd
: name(_name), f1(_f1), f2(_f2), enter(_enter), help(p_help)
{
}
oper_t::oper_t(const char *_name, int _f1, int _f2, const CdoHelp &p_help)
: name(_name), f1(_f1), f2(_f2), enter(nullptr), help(p_help)
{
}
oper_t::oper_t(const char *_name) : name(_name), help(default_help) {}
oper_t::oper_t(const char *_name, const CdoHelp &p_help) : name(_name), enter(nullptr), help(p_help) {}
......@@ -92,7 +96,6 @@ CdoModule::is_alias(const std::string &subject) const
std::vector<oper_t>::const_iterator
CdoModule::find_operator(const std::string &p_operatorName) const
{
auto res
= std::find_if(begin(operators), end(operators), [&p_operatorName](const oper_t &o) { return o.name == p_operatorName; });
return res;
......
......@@ -13,6 +13,7 @@
#include "cdo_output.h"
#include <cstring>
#include <algorithm>
namespace cdo
{
......@@ -75,6 +76,7 @@ bool cdoOverwriteMode = false;
bool cdoParIO = false;
bool cdoRegulargrid = false;
std::vector<std::string> cdoVarnames;
size_t
cdo_num_varnames()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment