mirror of https://github.com/ARMmbed/mbed-os.git
Span: Fix static assert message in default constructor.
parent
26b546bab3
commit
f6dd5eaa31
|
|
@ -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)"
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue