mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
And another boost/C++11 fix
This fixes Undefined symbols: "ArdourSurface::hash_value(ArdourSurface::NodeState const&)", referenced from: boost::hash<ArdourSurface::NodeState>::operator()(ArdourSurface::NodeState const&) constin client.cc.1.o boost::hash<ArdourSurface::NodeState>::operator()(ArdourSurface::NodeState const&) constin server.cc.1.o
This commit is contained in:
parent
a9c2350e87
commit
63a117bf93
3 changed files with 11 additions and 3 deletions
|
|
@ -19,7 +19,7 @@
|
||||||
#ifndef _ardour_surface_websockets_client_h_
|
#ifndef _ardour_surface_websockets_client_h_
|
||||||
#define _ardour_surface_websockets_client_h_
|
#define _ardour_surface_websockets_client_h_
|
||||||
|
|
||||||
#include <boost/unordered_set.hpp>
|
#include <set>
|
||||||
#include <list>
|
#include <list>
|
||||||
|
|
||||||
#include "message.h"
|
#include "message.h"
|
||||||
|
|
@ -56,8 +56,8 @@ public:
|
||||||
private:
|
private:
|
||||||
Client _wsi;
|
Client _wsi;
|
||||||
|
|
||||||
typedef boost::unordered_set<NodeState> ClientState;
|
typedef std::set<NodeState> ClientState;
|
||||||
ClientState _state;
|
ClientState _state;
|
||||||
|
|
||||||
ClientOutputBuffer _output_buf;
|
ClientOutputBuffer _output_buf;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,13 @@ NodeState::operator== (const NodeState& other) const
|
||||||
return node_addr_hash () == other.node_addr_hash ();
|
return node_addr_hash () == other.node_addr_hash ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
NodeState::operator< (const NodeState& other) const
|
||||||
|
{
|
||||||
|
return node_addr_hash () < other.node_addr_hash ();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
std::size_t
|
std::size_t
|
||||||
hash_value (const NodeState& state)
|
hash_value (const NodeState& state)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ public:
|
||||||
std::size_t node_addr_hash () const;
|
std::size_t node_addr_hash () const;
|
||||||
|
|
||||||
bool operator== (const NodeState& other) const;
|
bool operator== (const NodeState& other) const;
|
||||||
|
bool operator< (const NodeState& other) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string _node;
|
std::string _node;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue