Explicitly define SensorSet constructors
Declare all the default constructors.
Add explicit keyword to sysfs path constructor.
Change-Id: I320ace928a52d8c91a966cc88f4ceec35d744e9d
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/sensorset.hpp b/sensorset.hpp
index c254345..a6d8de7 100644
--- a/sensorset.hpp
+++ b/sensorset.hpp
@@ -10,7 +10,13 @@
typedef std::map<std::pair<std::string, std::string>,
std::set<std::string>> container_t;
- SensorSet(const std::string& path);
+ explicit SensorSet(const std::string& path);
+ ~SensorSet() = default;
+ SensorSet() = delete;
+ SensorSet(const SensorSet&) = delete;
+ SensorSet& operator=(const SensorSet&) = delete;
+ SensorSet(SensorSet&&) = default;
+ SensorSet& operator=(SensorSet&&) = default;
container_t::const_iterator begin()
{