Subject: CGAL users discussion list
List archive
- 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 <CGAL/Cartesian.h>
#include <CGAL/squared_distance_3.h>
#include <CGAL/Point_3.h>
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.
- [cgal-discuss] Why this can be compiled successfully?, updog, 06/30/2011
- Re: [cgal-discuss] Why this can be compiled successfully?, Laurent Rineau (GeometryFactory), 06/30/2011
Archive powered by MHonArc 2.6.16.