Commit 67bc2853 authored by Benoit Rat's avatar Benoit Rat

core: remove code to clean singleton destructor

This code coud not compile with GCC 4.4.7 (CentOS 6)
parent 9572b40d
...@@ -178,22 +178,22 @@ class EWBTrace { ...@@ -178,22 +178,22 @@ class EWBTrace {
private: private:
EWBTrace() {}; // Forbidden Constructor EWBTrace() {}; // Forbidden Constructor
#if __cplusplus <= 199711L //#if __cplusplus <= 199711L
// C++ 11 // // C++ 11
// ======= // // =======
// We can use the better technique of deleting the methods // // We can use the better technique of deleting the methods
// we don't want. // // we don't want.
EWBTrace(EWBTrace const&) = delete; // EWBTrace(EWBTrace const&) = delete;
void operator=(EWBTrace const&) = delete; // void operator=(EWBTrace const&) = delete;
#else //#else
// C++ 03 // // C++ 03
// ======== // // ========
// Dont forget to declare these two. You want to make sure they // // Dont forget to declare these two. You want to make sure they
// are unacceptable otherwise you may accidentally get copies of // // are unacceptable otherwise you may accidentally get copies of
// your singleton appearing. // // your singleton appearing.
EWBTrace(EWBTrace const&); // Don't Implement // EWBTrace(EWBTrace const&); // Don't Implement
void operator=(EWBTrace const&); // Don't implement // void operator=(EWBTrace const&); // Don't implement
#endif //#endif
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment