1
0
Fork 0
This commit is contained in:
Tycho 2014-05-17 15:19:35 +01:00
parent 1f98f21dd1
commit 016b8f7b99
1 changed files with 8 additions and 0 deletions

View File

@ -125,9 +125,17 @@ int main(int argc, char** argv)
cChunkBuffer buffer;
buffer.SetBlock(0,0,0,0x42);
cChunkBuffer copy;
#if __cplusplus < 201103L
copy = buffer;
#else
copy = std::move(buffer);
#endif
testassert(copy.GetBlock(0,0,0) == 0x42);
#if __cplusplus < 201103L
copy = copy;
#else
copy = std::move(copy);
#endif
testassert(copy.GetBlock(0,0,0) == 0x42);
}