diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-12-14 11:18:40 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-12-14 11:18:40 +0100 |
| commit | b13cd117a7957f9d86ec2986b47349979325a854 (patch) | |
| tree | fcdb302deb45f95bdd8495c5c03ea0e45ce77275 /cpp06/ex01/serialization.hpp | |
| parent | 2ee90625e793175c5fcde47564326a7eb8a1b3ee (diff) | |
| download | piscine_cpp-b13cd117a7957f9d86ec2986b47349979325a854.tar.gz piscine_cpp-b13cd117a7957f9d86ec2986b47349979325a854.tar.bz2 piscine_cpp-b13cd117a7957f9d86ec2986b47349979325a854.zip | |
Fixing nanf not recognized in cpp06/00, Fixing serialization size to 52 bytes
Diffstat (limited to 'cpp06/ex01/serialization.hpp')
| -rw-r--r-- | cpp06/ex01/serialization.hpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/cpp06/ex01/serialization.hpp b/cpp06/ex01/serialization.hpp index 36a5434..a04d476 100644 --- a/cpp06/ex01/serialization.hpp +++ b/cpp06/ex01/serialization.hpp @@ -6,7 +6,7 @@ /* By: charles <me@cacharle.xyz> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/11/18 10:22:17 by charles #+# #+# */ -/* Updated: 2020/11/18 10:22:35 by charles ### ########.fr */ +/* Updated: 2020/12/14 11:10:42 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -15,18 +15,11 @@ # include <string> -struct RawData -{ - char c1[8]; - int n; - char c2[8]; -}; - struct Data { std::string s1; int n; std::string s2; -}; +} __attribute__((packed)); #endif |
