mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
- Added `doxygen` API documentation with theme - Added error-compatible logging function - Added more error codes - Added `non_copyable` function - Added test function from exporting package list - Changed how errors are handled with returns - Change `gdpm remote` API to reflect `git` - Change most functions to accept a vector of arguments instead of a single parameter - Updated `.gitignore` and `README.md` files - Fixed issue with `gdpm export` command crashing
23 lines
425 B
C++
23 lines
425 B
C++
#pragma once
|
|
|
|
namespace gdpm{
|
|
/*
|
|
Base class to prevent derived class from creating copies.
|
|
*/
|
|
class non_copyable{
|
|
public:
|
|
non_copyable(){}
|
|
|
|
private:
|
|
non_copyable(const non_copyable&);
|
|
non_copyable& operator=(const non_copyable&);
|
|
};
|
|
|
|
/*
|
|
Base class to prevent derived classes from moving objects.
|
|
*/
|
|
class non_movable{
|
|
non_movable(const non_movable&) = delete;
|
|
non_movable(non_movable&&) = delete;
|
|
};
|
|
}
|