commit | d6e666f5735df7cfd905c29326b859c55de26017 | [log] [tgz] |
---|---|---|
author | Sergiy80 <sil2004@gmail.com> | Sat Dec 03 22:29:14 2016 +0200 |
committer | Sergiy80 <sil2004@gmail.com> | Sat Dec 03 22:29:14 2016 +0200 |
tree | 1aa4d63ef1ee912db802df7bf77dcbaae16966d0 | |
parent | a691cb19deedb9e1e5ed6c0dad12735019ef5e47 [diff] [blame] |
Add pragma pack directive Related to https://github.com/open-source-parsers/jsoncpp/issues/458
diff --git a/include/json/allocator.h b/include/json/allocator.h index 9d8b9fc..2492758 100644 --- a/include/json/allocator.h +++ b/include/json/allocator.h
@@ -9,6 +9,8 @@ #include <cstring> #include <memory> +#pragma pack(push, 8) + namespace Json { template<typename T> class SecureAllocator { @@ -91,4 +93,6 @@ } //namespace Json +#pragma pack(pop) + #endif // CPPTL_JSON_ALLOCATOR_H_INCLUDED