2016-06-14 23:32:35 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.hpp"
|
|
|
|
|
2016-11-19 00:22:44 -05:00
|
|
|
POLYBAR_NS
|
2016-06-14 23:32:35 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Base class for non copyable objects
|
|
|
|
*/
|
|
|
|
template <class T>
|
|
|
|
class non_copyable_mixin {
|
|
|
|
protected:
|
|
|
|
non_copyable_mixin() {}
|
|
|
|
~non_copyable_mixin() {}
|
|
|
|
|
|
|
|
private:
|
|
|
|
non_copyable_mixin(const non_copyable_mixin&);
|
|
|
|
non_copyable_mixin& operator=(const non_copyable_mixin&);
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Base class for non movable objects
|
|
|
|
*/
|
|
|
|
template <class T>
|
|
|
|
class non_movable_mixin {
|
|
|
|
protected:
|
|
|
|
non_movable_mixin() {}
|
|
|
|
~non_movable_mixin() {}
|
|
|
|
|
|
|
|
private:
|
|
|
|
non_movable_mixin(non_movable_mixin&&);
|
|
|
|
non_movable_mixin& operator=(non_movable_mixin&&);
|
|
|
|
};
|
|
|
|
|
2016-11-19 00:22:44 -05:00
|
|
|
POLYBAR_NS_END
|