Skip to content

Commit

Permalink
Include <algorithm> in muParserTemplateMagic.h
Browse files Browse the repository at this point in the history
The NEC compiler (https://sxauroratsubasa.sakura.ne.jp/Documentation) complains that std::min is not known here. Adding the include for algorithm, where it is defined (https://en.cppreference.com/w/cpp/algorithm/min) resolves the issue.
  • Loading branch information
haraldkl authored Mar 4, 2024
1 parent a326a5e commit 17a32d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/muParserTemplateMagic.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#ifndef MU_PARSER_TEMPLATE_MAGIC_H
#define MU_PARSER_TEMPLATE_MAGIC_H

#include <algorithm>
#include <cmath>
#include "muParserError.h"

Expand Down

0 comments on commit 17a32d2

Please sign in to comment.