diff options
Diffstat (limited to 'src/processor/simple_serializer.h')
-rw-r--r-- | src/processor/simple_serializer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/processor/simple_serializer.h b/src/processor/simple_serializer.h index 275f51ce..9e51d806 100644 --- a/src/processor/simple_serializer.h +++ b/src/processor/simple_serializer.h @@ -49,10 +49,10 @@ typedef uint64_t MemAddr; template<class Type> class SimpleSerializer { public: // Calculate and return the size of the 'item'. - static size_t SizeOf(const Type &item) { return sizeof(item); } + static size_t SizeOf(const Type& item) { return sizeof(item); } // Write 'item' to memory location 'dest', and return to the "end" address of // data written, i.e., the address after the final byte written. - static char *Write(const Type &item, char *dest) { + static char* Write(const Type& item, char* dest) { new (dest) Type(item); return dest + SizeOf(item); } |