diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-20 16:13:25 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-20 16:13:25 +0000 |
commit | 4c279888dc90ff1e047435d2b2d39ff6b2296172 (patch) | |
tree | 38fe4809107e2d01c56cc7c6cc043e87440379ab /STL | |
parent | e4086c73f5c95dfd4b1a214d33d0aa88753bd53a (diff) | |
download | ATCD-4c279888dc90ff1e047435d2b2d39ff6b2296172.tar.gz |
wrapped min/max templates with #if ! defined (VXWORKS) because it already has them
Diffstat (limited to 'STL')
-rw-r--r-- | STL/ChangeLog | 3 | ||||
-rw-r--r-- | STL/algobase.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/STL/ChangeLog b/STL/ChangeLog index 17da9fe8db1..4a897ce9208 100644 --- a/STL/ChangeLog +++ b/STL/ChangeLog @@ -1,5 +1,8 @@ Mon Jan 20 10:04:11 1997 David L. Levine <levine@cs.wustl.edu> + * algobase.h: wrapped min/max templates with #if ! defined (VXWORKS) + because it already has them. + * bstring.h: wrapped basic_string<char> template instantiation so that it's not used with GreenHills compiler. diff --git a/STL/algobase.h b/STL/algobase.h index b3f5fbbb697..17816328155 100644 --- a/STL/algobase.h +++ b/STL/algobase.h @@ -48,6 +48,7 @@ inline void swap(T& a, T& b) { b = tmp; } +#if ! defined (VXWORKS) template <class T> inline const T& min(const T& a, const T& b) { return b < a ? b : a; @@ -67,6 +68,7 @@ template <class T, class Compare> inline const T& max(const T& a, const T& b, Compare comp) { return comp(a, b) ? b : a; } +#endif /* VXWORKS */ template <class InputIterator, class Distance> void __distance(InputIterator first, InputIterator last, Distance& n, |