Skip to content

Commit f6dd5ea

Browse files
committed
Span: Fix static assert message in default constructor.
1 parent 26b546b commit f6dd5ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

platform/Span.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ struct Span {
9898
* Extent != 0 .
9999
*/
100100
Span() : _data(NULL) {
101-
MBED_STATIC_ASSERT(Extent == 0, "Invalid extent for a Span");
101+
MBED_STATIC_ASSERT(
102+
Extent == 0,
103+
"Cannot default construct a static-extent Span (unless Extent is 0)"
104+
);
102105
}
103106

104107
/**

0 commit comments

Comments
 (0)