diff --git a/src/include/FlashString/Object.hpp b/src/include/FlashString/Object.hpp index e9d69fd..7aaf77d 100644 --- a/src/include/FlashString/Object.hpp +++ b/src/include/FlashString/Object.hpp @@ -103,10 +103,13 @@ template class Object : public ObjectBa using DataPtrType = const ElementType*; using Iterator = ObjectIterator; +// This is precautionary to prevent misuse. No known fix for C++20. +#if __cplusplus < 202002L Object(const Object&) = delete; Object(const Object&&) = delete; Object& operator=(const Object&) = delete; Object& operator=(const Object&&) = delete; +#endif Iterator begin() const {