Closed de-vri-es closed 8 years ago
This looks good. Any idea why travis failed?
Oops, I used double >>
for closing template parameters. That's only allowed since C++11.
Changed to > >
, lets see if it passes now.
Wow I had fixed this in my fork but hadn't made it backwards compatible like that, nice PR!
I had a horrible hack first using cmake to generate a config.h
with the correct shared_ptr
type, but I didn't want to send a PR for that :)
Anyway, thanks for the merge.
The head of OMPL requires C++11 and unconditionally ditched
boost::shared_ptr
forstd::shared_ptr
[1]. That leads to an incompatibility in the moveit ompl plugin.This PR adds a template
same_shared_ptr<T, OtherPtr>
which has atype
typedef using the correctshared_ptr
(taken from OtherPtr). Preprocessor checks prevent the include of<memory>
and the mention ofstd::shared_ptr
if C++11 support is not available.I only changed the type of
shared_ptr
where it was required by OMPL, which was only one place.[1] https://bitbucket.org/ompl/ompl/commits/d47925099e2307e50f7420eedad604452dcc297a