Skip to content

Commit

Permalink
Catch use of Array<pointer>
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Apr 10, 2024
1 parent 4bbc187 commit a6a74a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/include/FlashString/Array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ namespace FSTR
template <typename ElementType> class Array : public Object<Array<ElementType>, ElementType>
{
public:
static_assert(!std::is_pointer<ElementType>::value, "Pointer types not supported by Array - use Vector");

/* Arduino Print support */

/**
Expand Down

0 comments on commit a6a74a2

Please sign in to comment.