Skip to content

Commit

Permalink
Add upgrade note.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jun 11, 2024
1 parent 2b67e16 commit 9c5ee6d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/source/upgrading/5.1-5.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,19 @@ Applications must explicitly call :cpp:func:`HttpRequest::onSslInit` and set the
This extra step ensures that security checks are not unintentionally bypassed.

The same behaviour is now presented when using Bearssl, and will now fail with ``X509_NOT_TRUSTED``.


**FlashString copy support removed**

The :library:`FlashString` previously supported copies (references) like this::

FlashString emptyString;
FlashString stringCopy(FS("Inline string"));

DEFINE_FSTR_DATA_LOCAL(flashHelloData, "Hello");
auto myCopy = flashHelloData;

These will now fail to compile.
Copy construction and assignment has been explicitly deleted so avoid unintentional side-effects.

Objects should always be passed by reference.

0 comments on commit 9c5ee6d

Please sign in to comment.