CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
single_copy.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_UTIL_SINGLE_COPY_H_
6 #define CVMFS_UTIL_SINGLE_COPY_H_
7 
8 #ifdef CVMFS_NAMESPACE_GUARD
9 namespace CVMFS_NAMESPACE_GUARD {
10 #endif
11 
12 
16 class SingleCopy {
17  protected:
18  // Prevent SingleCopy from being instantiated on its own
20 
21  private:
22  // Provoke a linker error by not implementing copy constructor and
23  // assignment operator.
24  SingleCopy(const SingleCopy &other);
25  SingleCopy& operator=(const SingleCopy &rhs);
26 };
27 
28 
29 #ifdef CVMFS_NAMESPACE_GUARD
30 } // namespace CVMFS_NAMESPACE_GUARD
31 #endif
32 
33 #endif // CVMFS_UTIL_SINGLE_COPY_H_