use own namespace

This commit is contained in:
john30
2017-01-14 16:41:54 +01:00
parent 7bd9446f13
commit 774e01e937
43 changed files with 196 additions and 48 deletions
+8 -2
View File
@@ -56,7 +56,11 @@
* template class.
*/
using namespace std;
namespace ebusd {
using std::binary_function;
using std::priority_queue;
using std::deque;
class Condition;
class SimpleCondition;
@@ -702,7 +706,7 @@ class ChainedMessage : public Message {
/**
* A function that compares the weighted poll priority of two @a Message instances.
*/
struct compareMessagePriority : binary_function <Message*, Message*, bool> {
struct compareMessagePriority : binary_function<Message*, Message*, bool> {
/**
* Compare the weighted poll priority of the two @a Message instances.
* @param x the first @a Message.
@@ -1377,4 +1381,6 @@ class MessageMap : public FileReader {
map<string, vector<Instruction*> > m_instructions;
};
} // namespace ebusd
#endif // LIB_EBUS_MESSAGE_H_