Skip to content

Commit a6a74a2

Browse files
author
mikee47
committed
Catch use of Array<pointer>
1 parent 4bbc187 commit a6a74a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/include/FlashString/Array.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ namespace FSTR
113113
template <typename ElementType> class Array : public Object<Array<ElementType>, ElementType>
114114
{
115115
public:
116+
static_assert(!std::is_pointer<ElementType>::value, "Pointer types not supported by Array - use Vector");
117+
116118
/* Arduino Print support */
117119

118120
/**

0 commit comments

Comments
 (0)