Replace 'body' with 'do'

This commit is contained in:
Geod24 2020-01-06 14:59:09 +09:00
parent 490a2519a1
commit bccd494072
5 changed files with 11 additions and 11 deletions

View file

@ -190,7 +190,7 @@ in {
assert((cast(size_t) chunk.ptr) % T.alignof == 0,
format("emplace: Misaligned memory block (0x%X): it must be %s-byte aligned for type %s", &chunk[0], T.alignof, T.stringof));
} body {
} do {
enum classSize = __traits(classInstanceSize, T);
auto result = () @trusted { return cast(T) chunk.ptr; } ();
@ -226,7 +226,7 @@ in {
assert((cast(size_t) chunk.ptr) % T.alignof == 0,
format("emplace: Misaligned memory block (0x%X): it must be %s-byte aligned for type %s", &chunk[0], T.alignof, T.stringof));
} body {
} do {
return emplace(() @trusted { return cast(T*)chunk.ptr; } (), args);
}