In file included from /Users/bugdealer/Developer/pfr-orm/lib/postgres/operations.cpp:5:
In file included from /Users/bugdealer/Developer/pfr-orm/include/pfr-orm/definitions.hpp:5:
In file included from /Users/bugdealer/Developer/pfr-orm/include/pfr-orm/detail/span.hpp:7:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/span:541:32: error: arithmetic on a pointer to an incomplete type 'const pfrorm::FieldDescription'
return iterator(data() + size());
~~~~~~ ^
Tested both on Apple LLVM and LLVM:
std::span
cannot be used on incomplete typeshttps://github.com/bgs99/pfr-orm/blob/12d7861f14834aaf2e83be09c839db497e6b9ef9/include/pfr-orm/definitions.hpp#L32