Revision: 56606
          http://sourceforge.net/p/brlcad/code/56606
Author:   starseeker
Date:     2013-08-05 22:03:28 +0000 (Mon, 05 Aug 2013)
Log Message:
-----------
Just use the std min and max...

Modified Paths:
--------------
    brlcad/trunk/src/other/libgdiam/gdiam.hpp

Modified: brlcad/trunk/src/other/libgdiam/gdiam.hpp
===================================================================
--- brlcad/trunk/src/other/libgdiam/gdiam.hpp   2013-08-05 21:40:05 UTC (rev 
56605)
+++ brlcad/trunk/src/other/libgdiam/gdiam.hpp   2013-08-05 22:03:28 UTC (rev 
56606)
@@ -45,29 +45,11 @@
 
 #ifndef __MINMAX_DEFINED
 #define __MINMAX_DEFINED
-/*
-template <class T> const inline   T& min( const T& t1, const T& t2 )
-{
-         return t1>t2 ? t2 : t1;
-}
 
-template <class T> inline  T& max( const T& t1, const T& t2 )
-{
-         return t1>t2 ? t1 : t2;
-}
-*/
+#include<algorithm>
+#define min std::min
+#define max std::max
 
-template <class T>
-inline T  min( T t1, T t2 )
-{
-         return t1>t2 ? t2 : t1;
-}
-
-template <class T>
-inline T  max( T t1, T t2 )
-{
-         return t1>t2 ? t1 : t2;
-}
 #endif /* MIN_MAX */
 
 template <class T>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to