Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Why this can be compiled successfully?

Subject: CGAL users discussion list

List archive

[cgal-discuss] Why this can be compiled successfully?


Chronological Thread 
  • From: updog <>
  • To:
  • Subject: [cgal-discuss] Why this can be compiled successfully?
  • Date: Thu, 30 Jun 2011 07:58:16 -0700 (PDT)

#include <iostream>
#include <fstream>
#include &lt;CGAL/Cartesian.h&gt;
#include &lt;CGAL/squared_distance_3.h&gt;
#include &lt;CGAL/Point_3.h&gt;
typedef CGAL::Point_3< CGAL::Cartesian<double> > Point;

using std::cout;
using std::endl;

int main() {
Point p1, p2;
double x = squared_distance(p1, p2);
cout << x << endl;
return 0;
}

Note that I forgot to place "CGAL::" before squared_distance(p1,p2), why
this still can be compiled?

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Why-this-can-be-compiled-successfully-tp3635927p3635927.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page