Skip to content

Commit

Permalink
Avoid Boost Config macros only available in Boost 1.50 and later
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Meyer <johannes@intermodalics.eu>
  • Loading branch information
meyerj committed Jan 16, 2017
1 parent acaced1 commit caacd28
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
3 changes: 1 addition & 2 deletions rtt/types/PropertyDecomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#include <vector>
#include <string>
#include <memory>
#include <boost/config.hpp>
#include <boost/lexical_cast.hpp>
#include "../Logger.hpp"
#include "TypeInfo.hpp"
Expand Down Expand Up @@ -104,7 +103,7 @@ bool typeDecomposition( base::DataSourceBase::shared_ptr dsb, PropertyBag& targe
targetbag.setType( dsb->getTypeName() );

// needed for recursion.
#ifndef BOOST_NO_CXX11_SMART_PTR
#if __cplusplus > 199711L
unique_ptr< Property<PropertyBag> >
#else
auto_ptr< Property<PropertyBag> >
Expand Down
4 changes: 1 addition & 3 deletions tests/corba_ipc_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
#include <string>
#include <stdlib.h>

#include <boost/config.hpp>

using namespace RTT;
using namespace RTT::detail;

Expand Down Expand Up @@ -551,7 +549,7 @@ BOOST_AUTO_TEST_CASE( testPortProxying )
BOOST_CHECK(!write_port->connected());

// Test cloning
#ifndef BOOST_NO_CXX11_SMART_PTR
#if __cplusplus > 199711L
unique_ptr<base::InputPortInterface>
#else
auto_ptr<base::InputPortInterface>
Expand Down
7 changes: 3 additions & 4 deletions tests/corba_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

#include "operations_fixture.hpp"

#include <boost/config.hpp>
#include <memory>

using namespace std;
Expand Down Expand Up @@ -610,7 +609,7 @@ BOOST_AUTO_TEST_CASE( testSharedConnections )
// This test installs shared connections between mo1 and mo2 as writers and mi2 and mi3 as readers

// // Add a second input port mo3 to tc
//#ifndef BOOST_NO_CXX11_SMART_PTR
//#if __cplusplus > 199711L
// unique_ptr<RTT::OutputPort<double> >
//#else
// auto_ptr<RTT::OutputPort<double> >
Expand All @@ -620,7 +619,7 @@ BOOST_AUTO_TEST_CASE( testSharedConnections )
// tc->addPort("mo3", *mo3);

// Add a second input port mi3 to t2
#ifndef BOOST_NO_CXX11_SMART_PTR
#if __cplusplus > 199711L
unique_ptr<RTT::InputPort<double> >
#else
auto_ptr<RTT::InputPort<double> >
Expand Down Expand Up @@ -785,7 +784,7 @@ BOOST_AUTO_TEST_CASE( testPortProxying )
BOOST_CHECK(!write_port->connected());

// Test cloning
#ifndef BOOST_NO_CXX11_SMART_PTR
#if __cplusplus > 199711L
unique_ptr<base::InputPortInterface>
#else
auto_ptr<base::InputPortInterface>
Expand Down
5 changes: 2 additions & 3 deletions tests/ports_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <extras/SimulationActivity.hpp>
#include <extras/SimulationThread.hpp>

#include <boost/config.hpp>
#include <boost/function_types/function_type.hpp>
#include <OperationCaller.hpp>

Expand Down Expand Up @@ -132,7 +131,7 @@ BOOST_AUTO_TEST_CASE( testPortTaskInterface )
// We're adding the above ports to another TC as well.
// This is not supported behavior, as it will 'overtake' ownership,
{
#ifndef BOOST_NO_CXX11_SMART_PTR
#if __cplusplus > 199711L
unique_ptr<TaskContext> tc1(new TaskContext( "tc", TaskContext::Stopped ));
unique_ptr<TaskContext> tc2(new TaskContext( "tc2", TaskContext::Stopped ));
#else
Expand Down Expand Up @@ -1045,7 +1044,7 @@ BOOST_AUTO_TEST_CASE(testPlainPortNotSignalling)
BOOST_AUTO_TEST_CASE(testPortDataSource)
{
OutputPort<int> wp1("Write");
#ifndef BOOST_NO_CXX11_SMART_PTR
#if __cplusplus > 199711L
unique_ptr<InputPortInterface>
#else
auto_ptr<InputPortInterface>
Expand Down
3 changes: 1 addition & 2 deletions tests/specialized_activities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <extras/FileDescriptorActivity.hpp>
#include <iostream>
#include <memory>
#include <boost/config.hpp>

#include <rtt-detail-fwd.hpp>
using namespace RTT::detail;
Expand Down Expand Up @@ -57,7 +56,7 @@ BOOST_FIXTURE_TEST_SUITE(SecializedActivitiesSuite,SpecializedActivities)

BOOST_AUTO_TEST_CASE( testFileDescriptorActivity )
{
#ifndef BOOST_NO_CXX11_SMART_PTR
#if __cplusplus > 199711L
unique_ptr<TestFDActivity>
#else
auto_ptr<TestFDActivity>
Expand Down

0 comments on commit caacd28

Please sign in to comment.