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_library(amqp-cpp STATIC ${SRCS})
|
||||
target_include_directories(amqp-cpp SYSTEM PUBLIC ${PROJECT_SOURCE_DIR})
|
||||
include_directories(${PROJECT_SOURCE_DIR})
|
||||
install(TARGETS amqp-cpp
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
|
|
|||
|
|
@ -31,6 +31,11 @@ namespace AMQP {
|
|||
class Buffer
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
virtual ~Buffer() {}
|
||||
|
||||
/**
|
||||
* Total size of the buffer
|
||||
* @return size_t
|
||||
|
|
|
|||
|
|
@ -36,6 +36,11 @@ class Connection;
|
|||
class ConnectionHandler
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
virtual ~ConnectionHandler() = default;
|
||||
|
||||
/**
|
||||
* Method that is called when the heartbeat frequency is negotiated
|
||||
* between the server and the client. You normally do not have to
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
*/
|
||||
#include "envelope.h"
|
||||
#include <limits>
|
||||
#include <stdexcept>
|
||||
|
||||
/**
|
||||
* Set up namespace
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ public:
|
|||
/**
|
||||
* Destructor
|
||||
*/
|
||||
virtual ~TcpConnection() = default;
|
||||
virtual ~TcpConnection() noexcept {}
|
||||
|
||||
/**
|
||||
* Process the TCP connection
|
||||
|
|
|
|||
|
|
@ -30,6 +30,11 @@ class TcpConnection;
|
|||
class TcpHandler
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
virtual ~TcpHandler() {}
|
||||
|
||||
/**
|
||||
* Method that is called when the heartbeat frequency is negotiated
|
||||
* between the server and the client.
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
#include <unistd.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <functional>
|
||||
#include <stdexcept>
|
||||
|
||||
// forward declarations
|
||||
#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
|
||||
// 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
|
||||
_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
|
||||
*/
|
||||
virtual ~TcpClosed() = default;
|
||||
virtual ~TcpClosed() noexcept = default;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ public:
|
|||
/**
|
||||
* Destructor
|
||||
*/
|
||||
virtual ~TcpConnected()
|
||||
virtual ~TcpConnected() noexcept
|
||||
{
|
||||
// we no longer have to monitor the socket
|
||||
_handler->monitor(_connection, _socket, 0);
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ public:
|
|||
/**
|
||||
* Destructor
|
||||
*/
|
||||
virtual ~TcpResolver()
|
||||
virtual ~TcpResolver() noexcept
|
||||
{
|
||||
// stop monitoring the pipe filedescriptor
|
||||
_handler->monitor(_connection, _pipe.in(), 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue