intersection for std::vector<QPoint*>
- 主要言語
- 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 はまだ評価されていません。