diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-03-09 07:56:22 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-03-09 07:56:22 +0000 |
commit | 684771c0c8079015721ab36a5b06cd9ee8136324 (patch) | |
tree | 18e516c8eb64b5c6880043c15d29406a5e85dbc6 /cli | |
parent | 5d861fe673b5904fe2c219a4ebe71820a65181c5 (diff) |
cli,common: Use static_assert where appropriate.
Diffstat (limited to 'cli')
-rw-r--r-- | cli/pickle.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/pickle.hpp b/cli/pickle.hpp index 753cd6f1..20dbb13d 100644 --- a/cli/pickle.hpp +++ b/cli/pickle.hpp @@ -300,7 +300,7 @@ public: char c[8]; } u; - assert(sizeof u.f == sizeof u.c); + static_assert(sizeof u.f == sizeof u.c, "double is not 8 bytes"); u.f = f; os.put(BINFLOAT); |