summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rawDataReader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rawDataReader.h b/lib/rawDataReader.h
index b23de88..c3a537a 100644
--- a/lib/rawDataReader.h
+++ b/lib/rawDataReader.h
@@ -36,6 +36,7 @@ namespace MyGrate {
typename type_map<T>::target
readValue(size_t L)
{
+ static_assert(std::is_trivial_v<T>, "Do not read non-trivial types");
verify<std::logic_error>(L > 0 && L <= sizeof(T), "Read exceeds target size");
offsetSizeCheck(L);
T v {};