diff options
author | 2011-05-25 08:41:45 +0200 | |
---|---|---|
committer | 2011-05-25 08:41:45 +0200 | |
commit | 87ac09daa88c1df338701f2d2b30b09e812cf757 (patch) | |
tree | fbd79b37052ff08feee169776761b3058057481d /Eigen/src/Core/GenericPacketMath.h | |
parent | 5541bcb7692088ecc671a9e0ebf8af96eaec208e (diff) |
Simplify the use of custom scalar types, the rule is to never directly call a standard math function using std:: but rather put a using std::foo before and simply call foo:
using std::max;
max(a,b);
Diffstat (limited to 'Eigen/src/Core/GenericPacketMath.h')
-rw-r--r-- | Eigen/src/Core/GenericPacketMath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/GenericPacketMath.h b/Eigen/src/Core/GenericPacketMath.h index 2cedab04a..1366a63c1 100644 --- a/Eigen/src/Core/GenericPacketMath.h +++ b/Eigen/src/Core/GenericPacketMath.h @@ -134,12 +134,12 @@ pdiv(const Packet& a, /** \internal \returns the min of \a a and \a b (coeff-wise) */ template<typename Packet> inline Packet pmin(const Packet& a, - const Packet& b) { return std::min(a, b); } + const Packet& b) { using std::min; return min(a, b); } /** \internal \returns the max of \a a and \a b (coeff-wise) */ template<typename Packet> inline Packet pmax(const Packet& a, - const Packet& b) { return std::max(a, b); } + const Packet& b) { using std::max; return max(a, b); } /** \internal \returns the absolute value of \a a */ template<typename Packet> inline Packet |