Fawkes API  Fawkes Development Version
compatibility.h
1 
2 /***************************************************************************
3  * compatibility.h - Helper definitions for PCL's boost -> std transition
4  *
5  * Copyright 2020 Victor MatarĂ©
6  ****************************************************************************/
7 
8 /* This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Library General Public License for more details.
17  *
18  * Read the full text in the LICENSE.GPL file in the doc directory.
19  */
20 
21 #pragma once
22 
23 #include <pcl/pcl_config.h>
24 
25 #if PCL_VERSION_COMPARE(<, 1, 11, 0)
26 
27 # include <boost/smart_ptr/shared_ptr.hpp>
28 
29 namespace pcl {
30 template <class T>
31 using shared_ptr = boost::shared_ptr<T>;
32 }
33 
34 #else
35 
36 # include <pcl/memory.h>
37 
38 #endif