intersection for std::vector<QPoint*>
- Dominant language
- C++
- Stars
- 517
- Forks
- 232
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
Assessment
This issue has not been assessed yet.