1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00
Sprout/sprout/utility/noncopyable.hpp

22 lines
539 B
C++
Raw Normal View History

2012-10-10 15:15:34 +00:00
#ifndef SPROUT_UTILITY_NONCOPYABLE_HPP
#define SPROUT_UTILITY_NONCOPYABLE_HPP
#include <sprout/config.hpp>
namespace sprout {
namespace noncopyable_ {
class noncopyable {
public:
SPROUT_CONSTEXPR noncopyable() = default;
noncopyable(noncopyable const&) = delete;
noncopyable& operator=(noncopyable const&) = delete;
};
} // namespace noncopyable_
//
// noncopyable
//
typedef sprout::noncopyable_::noncopyable noncopyable;
} // namespace sprout
#endif // #ifndef SPROUT_UTILITY_NONCOPYABLE_HPP