My Project
|
Helper class to prevent a class from being copied. More...
#include <unity/util/NonCopyable.h>
Helper class to prevent a class from being copied.
This class disables the copy constructor and assignment operator of a class to prevent it from being copied. This makes the fact that a class is not copyable immediately visible on reading the class definition, rather than having to read through the entire class to look for a copy constructor and assignment operator in the private section, or having to look for = delete;
on the corresponding definitions.
To use the class, use private inheritance: