boostorg / boostorg/geometry

intersection for std::vector<QPoint*>

オープン
#659 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
517
フォーク
232
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi. I'm trying to get intersection for two std::vector, where QPoing is a home brew point class. Then I got allocation errors for boost declares a QPoint* without instanciation when a temporary QPoint object is needed. I've solved this problem by simply adding
```
template
struct boost::geometry::robust_point_type {
typedef point type;
};
template
struct boost::geometry::robust_point_type<
point *, boost::geometry::detail::no_rescale_policy> {
typedef point type;
};
```
and it works.
The thing is, I'm a newbie to c++ and not so secure about my coding. Is there any important reason not to do this in the first place? Like causing more errors in some situation or sth else I should be ware?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。