Remove alignment requirement for buffer

This commit is contained in:
Matthias Hochsteger 2018-12-14 14:40:01 +01:00
parent 42a4a28580
commit 5952884a6a

View File

@ -522,9 +522,9 @@ namespace ngcore
// BinaryOutArchive ======================================================================
class NGCORE_API BinaryOutArchive : public Archive
{
size_t ptr = 0;
static constexpr size_t BUFFERSIZE = 1024;
alignas(16) char buffer[BUFFERSIZE] = {};
char buffer[BUFFERSIZE] = {};
size_t ptr = 0;
std::shared_ptr<std::ostream> fout;
public:
BinaryOutArchive() = delete;