Skip to content

Commit

Permalink
Merge pull request #1062 from fran6co/boost
Browse files Browse the repository at this point in the history
Fix for boost 1.57
  • Loading branch information
jspricke committed Jan 5, 2015
2 parents 137d9b4 + 1d48a75 commit eff3795
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/include/pcl/apps/impl/dominant_plane_segmentation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
*
*/

#ifndef Q_MOC_RUN
#pragma once
#include <boost/thread/thread.hpp>
#ifndef Q_MOC_RUN
#include <boost/date_time/posix_time/posix_time.hpp>
#endif

Expand Down
4 changes: 2 additions & 2 deletions common/include/pcl/common/boost.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@
#pragma GCC system_header
#endif

#ifndef Q_MOC_RUN
// Marking all Boost headers as system headers to remove warnings
#include <boost/fusion/sequence/intrinsic/at_key.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include <boost/mpl/size.hpp>
#ifndef Q_MOC_RUN
#include <boost/date_time/posix_time/posix_time.hpp>
#endif
#include <boost/function.hpp>
//#include <boost/timer.hpp>
#include <boost/thread.hpp>
#include <boost/thread/condition.hpp>
#include <boost/signals2.hpp>
#include <boost/signals2/slot.hpp>
#include <boost/algorithm/string.hpp>
#endif

#endif // PCL_COMMON_BOOST_H_
2 changes: 2 additions & 0 deletions common/include/pcl/conversions.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
#include <pcl/for_each_type.h>
#include <pcl/exceptions.h>
#include <pcl/console/print.h>
#ifndef Q_MOC_RUN
#include <boost/foreach.hpp>
#endif

namespace pcl
{
Expand Down
2 changes: 2 additions & 0 deletions common/include/pcl/for_each_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#pragma GCC system_header
#endif

#ifndef Q_MOC_RUN
#include <boost/mpl/is_sequence.hpp>
#include <boost/mpl/begin_end.hpp>
#include <boost/mpl/next_prior.hpp>
Expand All @@ -54,6 +55,7 @@
#include <boost/mpl/not.hpp>
#include <boost/mpl/aux_/unwrap.hpp>
#include <boost/type_traits/is_same.hpp>
#endif

namespace pcl
{
Expand Down
4 changes: 2 additions & 2 deletions common/include/pcl/register_point_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
#pragma warning (disable: 4244)
#endif

//https://bugreports.qt-project.org/browse/QTBUG-22829
#ifndef Q_MOC_RUN
#include <pcl/pcl_macros.h>
#include <pcl/point_traits.h>
#include <boost/mpl/vector.hpp>
Expand All @@ -60,8 +62,6 @@
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/comparison.hpp>
#include <boost/utility.hpp>
//https://bugreports.qt-project.org/browse/QTBUG-22829
#ifndef Q_MOC_RUN
#include <boost/type_traits.hpp>
#endif
#include <stddef.h> //offsetof
Expand Down
4 changes: 2 additions & 2 deletions tools/boost.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@
#pragma GCC system_header
#endif

#ifndef Q_MOC_RUN
// Marking all Boost headers as system headers to remove warnings
#include <boost/random.hpp>
#include <boost/random/normal_distribution.hpp>
#include <boost/thread/thread.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/make_shared.hpp>
#include <boost/date_time/gregorian/gregorian_types.hpp>
#ifndef Q_MOC_RUN
#include <boost/date_time/posix_time/posix_time.hpp>
#endif
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/thread/thread.hpp>
//#include <boost/uuid/uuid.hpp>
//#include <boost/uuid/uuid_generators.hpp>
#endif

#endif // PCL_TOOLS_BOOST_H_
3 changes: 2 additions & 1 deletion visualization/include/pcl/visualization/interactor_style.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@
#include <pcl/visualization/mouse_event.h>
#include <pcl/visualization/point_picking_event.h>
#include <pcl/visualization/area_picking_event.h>
#ifndef Q_MOC_RUN
#include <boost/signals2/signal.hpp>

#endif
#include <vtkInteractorStyleRubberBandPick.h>

class vtkRendererCollection;
Expand Down
2 changes: 1 addition & 1 deletion visualization/tools/image_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
*
*/

#include <boost/thread/thread.hpp>
#ifndef Q_MOC_RUN
#include <boost/thread/thread.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#endif
#include <pcl/point_cloud.h>
Expand Down

0 comments on commit eff3795

Please sign in to comment.