make it compile with cmake 2.8/gcc 4.7.3
This commit is contained in:
parent
f3343ad1cb
commit
1dcbc33b53
|
|
@ -25,7 +25,7 @@ add_subdirectory(src)
|
||||||
add_subdirectory(include)
|
add_subdirectory(include)
|
||||||
|
|
||||||
add_library(amqp-cpp STATIC ${SRCS})
|
add_library(amqp-cpp STATIC ${SRCS})
|
||||||
target_include_directories(amqp-cpp SYSTEM PUBLIC ${PROJECT_SOURCE_DIR})
|
include_directories(${PROJECT_SOURCE_DIR})
|
||||||
install(TARGETS amqp-cpp
|
install(TARGETS amqp-cpp
|
||||||
ARCHIVE DESTINATION lib
|
ARCHIVE DESTINATION lib
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,11 @@ namespace AMQP {
|
||||||
class Buffer
|
class Buffer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* Destructor
|
||||||
|
*/
|
||||||
|
virtual ~Buffer() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Total size of the buffer
|
* Total size of the buffer
|
||||||
* @return size_t
|
* @return size_t
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,11 @@ class Connection;
|
||||||
class ConnectionHandler
|
class ConnectionHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* Destructor
|
||||||
|
*/
|
||||||
|
virtual ~ConnectionHandler() = default;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method that is called when the heartbeat frequency is negotiated
|
* Method that is called when the heartbeat frequency is negotiated
|
||||||
* between the server and the client. You normally do not have to
|
* between the server and the client. You normally do not have to
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
*/
|
*/
|
||||||
#include "envelope.h"
|
#include "envelope.h"
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set up namespace
|
* Set up namespace
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Destructor
|
* Destructor
|
||||||
*/
|
*/
|
||||||
virtual ~TcpConnection() = default;
|
virtual ~TcpConnection() noexcept {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Process the TCP connection
|
* Process the TCP connection
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,11 @@ class TcpConnection;
|
||||||
class TcpHandler
|
class TcpHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* Destructor
|
||||||
|
*/
|
||||||
|
virtual ~TcpHandler() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method that is called when the heartbeat frequency is negotiated
|
* Method that is called when the heartbeat frequency is negotiated
|
||||||
* between the server and the client.
|
* between the server and the client.
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <netinet/tcp.h>
|
#include <netinet/tcp.h>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
// forward declarations
|
// forward declarations
|
||||||
#include "../include/classes.h"
|
#include "../include/classes.h"
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ Table::Table(const Table &table)
|
||||||
// since a map is always ordered, we know that each element will
|
// since a map is always ordered, we know that each element will
|
||||||
// be inserted at the end of the new map, so we can simply use
|
// be inserted at the end of the new map, so we can simply use
|
||||||
// emplace_hint and hint at insertion at the end of the map
|
// emplace_hint and hint at insertion at the end of the map
|
||||||
_fields.emplace_hint(_fields.end(), std::make_pair(iter->first, iter->second->clone()));
|
_fields.insert(_fields.end(), std::make_pair(iter->first, iter->second->clone()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Destructor
|
* Destructor
|
||||||
*/
|
*/
|
||||||
virtual ~TcpClosed() = default;
|
virtual ~TcpClosed() noexcept = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Destructor
|
* Destructor
|
||||||
*/
|
*/
|
||||||
virtual ~TcpConnected()
|
virtual ~TcpConnected() noexcept
|
||||||
{
|
{
|
||||||
// we no longer have to monitor the socket
|
// we no longer have to monitor the socket
|
||||||
_handler->monitor(_connection, _socket, 0);
|
_handler->monitor(_connection, _socket, 0);
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Destructor
|
* Destructor
|
||||||
*/
|
*/
|
||||||
virtual ~TcpResolver()
|
virtual ~TcpResolver() noexcept
|
||||||
{
|
{
|
||||||
// stop monitoring the pipe filedescriptor
|
// stop monitoring the pipe filedescriptor
|
||||||
_handler->monitor(_connection, _pipe.in(), 0);
|
_handler->monitor(_connection, _pipe.in(), 0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue