Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cpp/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ For Ubuntu 12.04, the steps are simple:
# apt-get install gcc libboost1.48 libev4 libev-dev libmemcached-dev
# bash ./Make.sh

Build on Ubuntu 20.04
---------------------

# apt-get install build-essential libboost1.71-all-dev libev4 libev-dev libmemcached-dev

@rtf6x rtf6x Feb 13, 2024

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apt-get install build-essential libboost-all-dev libev4 libev-dev libmemcached-dev

# bash ./Make.sh


Build dklab_realplexor binary on other Linux versions
-----------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions cpp/Realplexor/Event/Server.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ class Server: public ServerBase
lastAddr = addr;
events.push_back(add_listen(addr));
}
} catch (runtime_error e) {
} catch (runtime_error& e) {
events.clear();
die(lastAddr + ": " + e.what());
} catch (exception e) {
} catch (exception& e) {
events.clear();
die(lastAddr + ": unknown exception");
}
Expand Down
2 changes: 2 additions & 0 deletions cpp/dklab_realplexor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
//@ per Storage and one CONFIG, they are like singletons.
//@

#pragma GCC diagnostic ignored "-Wunused-result"

#include <vector>
#include <list>
#include <unordered_set>
Expand Down
2 changes: 1 addition & 1 deletion cpp/utils/checked_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class checked_map: public map<K, V>
{
try {
return lexical_cast<T>(get(k));
} catch (bad_lexical_cast e) {
} catch (bad_lexical_cast& e) {
throw out_of_range("Error while casting of the key " + k + " presented in " + name);
}
}
Expand Down