PDB-REDO / libcifpp

Library containing code to manipulate mmCIF and PDB files
https://pdb-redo.github.io/libcifpp/
BSD 2-Clause "Simplified" License
29 stars 10 forks source link

Build fails on i386: error: static_assert failed due to requirement 'sizeof(cif::item_value) == 16' "sizeof(item_value) should be 16 bytes" #25

Closed yurivict closed 1 year ago

yurivict commented 1 year ago
In file included from /wrkdirs/usr/ports/science/libcifpp/work/libcifpp-5.0.3/include/cif++/row.hpp:29:
/wrkdirs/usr/ports/science/libcifpp/work/libcifpp-5.0.3/include/cif++/item.hpp:261:1: error: static_assert failed due to requirement 'sizeof(cif::item_value) == 16' "sizeof(item_value) should be 16 bytes"
static_assert(sizeof(item_value) == 16, "sizeof(item_value) should be 16 bytes");
^             ~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Version: 5.0.3 clang-14 FreeBSD 13.1

mhekkel commented 1 year ago

That static_assert had a reason. I've fixed the code. New tag 5.0.5.