Skip to content

Commit

Permalink
make it compile with boost >= 1.66.0 (FreeOpcUa#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralf1070 authored Jan 25, 2019
1 parent 18e5a08 commit 2f2c886
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 36 deletions.
12 changes: 1 addition & 11 deletions include/opc/ua/server/addons/asio_addon.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,7 @@


#include <opc/common/addons_core/addon.h>


namespace boost
{
namespace asio
{

class io_service;

}
}
#include <opc/ua/services/services.h>

namespace OpcUa
{
Expand Down
8 changes: 0 additions & 8 deletions include/opc/ua/server/opc_tcp_async.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@
#include <opc/ua/services/services.h>
#include <opc/common/interface.h>

namespace boost
{
namespace asio
{
class io_service;
}
}

namespace OpcUa
{
namespace Server
Expand Down
9 changes: 0 additions & 9 deletions include/opc/ua/server/subscription_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@
#include <opc/ua/server/address_space.h>
#include <opc/ua/services/subscriptions.h>


namespace boost
{
namespace asio
{
class io_service;
}
}

namespace OpcUa
{
namespace Server
Expand Down
16 changes: 16 additions & 0 deletions include/opc/ua/services/services.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@
#include <memory>
#include <vector>

#include <boost/version.hpp>


namespace boost
{
namespace asio
{
#if BOOST_VERSION < 106600
class io_service;
#else
class io_context;
typedef io_context io_service;
#endif
}
}

namespace OpcUa
{

Expand Down
8 changes: 0 additions & 8 deletions src/server/server_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@

#include "timer.h"

namespace boost
{
namespace asio
{
class io_service;
}
}

namespace OpcUa
{
namespace Server
Expand Down

0 comments on commit 2f2c886

Please sign in to comment.