Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] OpenCV and CGAL

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] OpenCV and CGAL


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] OpenCV and CGAL
  • Date: Thu, 24 Apr 2008 19:37:29 +0200

Wesley Smith a écrit :
I actually had exactly the same problem yesterday with min and max
defines. This was with VS2008. I had to do the following:


#ifdef min
#define MIN_MACRO min
#define MAX_MACRO max
#undef min
#undef max
#else
#define MIN_MACRO
#define MAX_MACRO
#endif

/*
my code
*/

#define min MIN_MACRO
#define max MAX_MACRO


I was kind of surprised that there were macros with names min and max
in CGAL since these are such common names, they're bound to conflict.

To make it clear: CGAL does not define min/max macros.
It protects itself against those macros which are defined by some
windows header file.

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page