From 8f7d9e90441da6d4c754f546fe1c2d5428769bf8 Mon Sep 17 00:00:00 2001 From: mikee47 Date: Mon, 10 Jun 2024 16:12:05 +0100 Subject: [PATCH] Add upgrade note. --- docs/source/upgrading/5.1-5.2.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/source/upgrading/5.1-5.2.rst b/docs/source/upgrading/5.1-5.2.rst index 0d10a27c14..96f7fc41a4 100644 --- a/docs/source/upgrading/5.1-5.2.rst +++ b/docs/source/upgrading/5.1-5.2.rst @@ -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.