mirror of https://github.com/CGAL/cgal
Merge pull request #561 from sgiraudot/CGAL-Bugfix_clang_is_convertible-GF
Bugfix: pair not compatible with Point_3 (clang)
This commit is contained in:
commit
0e1c696192
|
|
@ -25,7 +25,6 @@
|
|||
#ifndef CGAL_CARTESIAN_LINE_3_H
|
||||
#define CGAL_CARTESIAN_LINE_3_H
|
||||
|
||||
#include <utility>
|
||||
#include <CGAL/Handle_for.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
|
@ -42,7 +41,15 @@ class LineC3
|
|||
typedef typename R_::Line_3 Line_3;
|
||||
typedef typename R_::Segment_3 Segment_3;
|
||||
|
||||
typedef std::pair<Point_3, Vector_3> Rep;
|
||||
struct Rep
|
||||
{
|
||||
Point_3 first;
|
||||
Vector_3 second;
|
||||
Rep () : first(), second() { }
|
||||
Rep (const Point_3& p, const Vector_3& v) : first(p), second(v) { }
|
||||
Rep (const Rep& r) : first(r.first), second(r.second) { }
|
||||
};
|
||||
|
||||
typedef typename R_::template Handle<Rep>::type Base;
|
||||
|
||||
Base base;
|
||||
|
|
|
|||
Loading…
Reference in New Issue