diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-15 18:27:51 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-15 18:27:51 +0200 |
| commit | 1434698cc01d9e5b2c73ef7b9fc83de034a96241 (patch) | |
| tree | 81fc603dbeae2ae5f7abd215777e57d020fb0434 /include | |
| parent | 6fb5d9850e0fb08c3cd7bdb7dd4f60a03dd0a948 (diff) | |
| download | Project-Tick-1434698cc01d9e5b2c73ef7b9fc83de034a96241.tar.gz Project-Tick-1434698cc01d9e5b2c73ef7b9fc83de034a96241.zip | |
Add tests for primitive numeric limits
Diffstat (limited to 'include')
| -rw-r--r-- | include/primitive_detail.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/primitive_detail.h b/include/primitive_detail.h index dea7ff225f..aaf33ff563 100644 --- a/include/primitive_detail.h +++ b/include/primitive_detail.h @@ -20,8 +20,12 @@ #ifndef PRIMITIVE_DETAIL_H_INCLUDED #define PRIMITIVE_DETAIL_H_INCLUDED +#include <limits> #include <type_traits> +static_assert(std::numeric_limits<float>::is_iec559 && std::numeric_limits<double>::is_iec559, + "The floating point values for NBT must conform to IEC 559/IEEE 754"); + ///@cond namespace nbt { |
