Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] compilation error

Subject: CGAL users discussion list

List archive

[cgal-discuss] compilation error


Chronological Thread 
  • From: Dominik Szczerba <>
  • To:
  • Subject: [cgal-discuss] compilation error
  • Date: Thu, 24 Mar 2011 21:34:39 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=r8G/mZcVtXt5bzp/5fxStbmnC0ppLjVguECVRYfr7VSKuul3HMVp22PEa3crfXqzk5 NKQFKoSCrnOdjywUX+zo/JyXm4IMbOyYAnzm9NbKhnSOFlBEf2VKFCqAtiNEoJGn6Eo+ 6lUjdR22qjyfKFXjqoevvKVI/sCaJRyz0P0mo=

I get the following error on Visual Studio 2010 x64:

Error 242 error C2668: 'boost::bind' : ambiguous call to overloaded function P:\cgal-3.7\x64\RelWithDebInfo\include\CGAL\Convex_hull_2\ch_akl_toussaint_impl.h 101
Error 243 error C2780: 'void std::sort(_RanIt,_RanIt)' : expects 2 arguments - 3 provided P:\cgal-3.7\x64\RelWithDebInfo\include\CGAL\Convex_hull_2\ch_akl_toussaint_impl.h 101
Error 244 error C2668: 'boost::bind' : ambiguous call to overloaded function P:\cgal-3.7\x64\RelWithDebInfo\include\CGAL\Convex_hull_2\ch_akl_toussaint_impl.h 103
Error 245 error C2780: 'void std::sort(_RanIt,_RanIt)' : expects 2 arguments - 3 provided P:\cgal-3.7\x64\RelWithDebInfo\include\CGAL\Convex_hull_2\ch_akl_toussaint_impl.h 103

Here the relevant part of the original CGAL code:

std::sort( successor(region3.begin() ), region3.end(),
             bind(ch_traits.less_xy_2_object(), _2, _1) );
  std::sort( successor(region4.begin() ), region4.end(), 
             bind(ch_traits.less_xy_2_object(), _2, _1) );


Using boost 1.46.1.

I will be happy for any pointers how to fix it.

Dominik



Archive powered by MHonArc 2.6.16.

Top of Page