Skip to content

Commit 21d87cc

Browse files
committed
Fix build failure on C++20
1 parent 79eb493 commit 21d87cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/include/FlashString/Object.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,13 @@ template <class ObjectType, typename ElementType> class Object : public ObjectBa
103103
using DataPtrType = const ElementType*;
104104
using Iterator = ObjectIterator<ObjectType, ElementType>;
105105

106+
// This is precautionary to prevent misuse. No known fix for C++20.
107+
#if __cplusplus < 202002L
106108
Object(const Object&) = delete;
107109
Object(const Object&&) = delete;
108110
Object& operator=(const Object&) = delete;
109111
Object& operator=(const Object&&) = delete;
112+
#endif
110113

111114
Iterator begin() const
112115
{

0 commit comments

Comments
 (0)