summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-05-26 00:33:04 -0700
committerFuwn <[email protected]>2022-05-26 00:33:04 -0700
commit3a2a124a26ce433bb015d85979e8093404113ebe (patch)
treeaecdf276f5e0099f1528a196540ebdc9a6ed59e6
parentdocs(platypus): add authors (diff)
downloadwk7_platypusproject-3a2a124a26ce433bb015d85979e8093404113ebe.tar.xz
wk7_platypusproject-3a2a124a26ce433bb015d85979e8093404113ebe.zip
feat(platypus): reorder members for padding
-rw-r--r--platypus/platypus.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/platypus/platypus.h b/platypus/platypus.h
index 05cca77..7f3e9a8 100644
--- a/platypus/platypus.h
+++ b/platypus/platypus.h
@@ -10,14 +10,6 @@
/** A platypus */
class Platypus {
private:
- /** The platypus' weight */
- float weight;
- /** The platypus' age in months */
- short age;
- /** The platypus' alive state */
- bool alive;
- /** The platypus' mutant state */
- bool mutant;
/** The platypus' name */
std::string name;
/**
@@ -27,6 +19,14 @@ private:
*
*/
std::string gender;
+ /** The platypus' weight */
+ float weight;
+ /** The platypus' age in months */
+ short int age;
+ /** The platypus' alive state */
+ bool alive;
+ /** The platypus' mutant state */
+ bool mutant;
public:
/**