From f6dd5eaa316fdd6fb05e77289878ec5b50249c81 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Wed, 22 Aug 2018 13:31:26 +0100 Subject: [PATCH] Span: Fix static assert message in default constructor. --- platform/Span.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/Span.h b/platform/Span.h index 2fb1673449..0c06a30165 100644 --- a/platform/Span.h +++ b/platform/Span.h @@ -98,7 +98,10 @@ struct Span { * Extent != 0 . */ Span() : _data(NULL) { - MBED_STATIC_ASSERT(Extent == 0, "Invalid extent for a Span"); + MBED_STATIC_ASSERT( + Extent == 0, + "Cannot default construct a static-extent Span (unless Extent is 0)" + ); } /**