PGCC is picky about the difference between a pointer and an array.

So just add "+0" to get the pointer.
This commit is contained in:
Sylvain Pion 2007-03-23 14:36:31 +00:00
parent ac960f4d42
commit 06c0bc0a63
1 changed files with 3 additions and 3 deletions

View File

@ -24,9 +24,9 @@ int main()
Point t1[3] = { Point(20,10), Point(30,10), Point(25, 15) };
std::list<std::pair<Point*,Point*> > polylines;
polylines.push_back(std::make_pair(r1, r1+3));
//polylines.push_back(std::make_pair(s1, s1+2));
polylines.push_back(std::make_pair(t1, t1+3));
polylines.push_back(std::make_pair(r1+0, r1+3));
//polylines.push_back(std::make_pair(s1+0, s1+2));
polylines.push_back(std::make_pair(t1+0, t1+3));
Nef_polyhedron RST(polylines.begin(), polylines.end(), Nef_polyhedron::POLYLINES);