Commit d74460b9 authored by BRAMAS Berenger's avatar BRAMAS Berenger

Use c++ 0x to forbid the copy and assignement

parent ea7e574f
......@@ -24,9 +24,9 @@
class FNoCopyable {
private:
/** Forbiden copy constructor */
FNoCopyable(const FNoCopyable&);
FNoCopyable(const FNoCopyable&) = delete;
/** Forbiden copy operator */
FNoCopyable& operator=(const FNoCopyable&);
FNoCopyable& operator=(const FNoCopyable&) = delete;
protected:
/** Empty constructor */
FNoCopyable(){}
......@@ -39,7 +39,7 @@ protected:
class FNoAssignement {
private:
/** Forbiden copy operator */
FNoAssignement& operator=(const FNoAssignement&);
FNoAssignement& operator=(const FNoAssignement&) = delete;
protected:
/** Empty constructor */
FNoAssignement(){}
......
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