File: boost_shared_ptr_assign.h

package info (click to toggle)
python-pcl 0.3.0~rc1%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 28,324 kB
  • sloc: python: 3,100; cpp: 292; makefile: 181; sh: 24; ansic: 12
file content (11 lines) | stat: -rw-r--r-- 257 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>

namespace {
    // Workaround for lack of operator= support in Cython.
    template <typename T>
    void sp_assign(boost::shared_ptr<T> &p, T *v)
    {
        p = boost::shared_ptr<T>(v);
    }
}