Files
thirdparty-ArduinoJson/include/ArduinoJson/Internals/NonCopyable.hpp
Benoit Blanchon 889f059758 All tests passed!
2014-10-30 21:51:59 +01:00

26 lines
438 B
C++

// Copyright Benoit Blanchon 2014
// MIT License
//
// Arduino JSON library
// https://github.com/bblanchon/ArduinoJson
#pragma once
namespace ArduinoJson {
namespace Internals {
// A class that is not meant to be copied
class NonCopyable {
protected:
NonCopyable() {}
private:
// copy constructor is private
NonCopyable(const NonCopyable&);
// copy operator is private
NonCopyable& operator=(const NonCopyable&);
};
}
}