]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Special-case cstddef inclusion. 18483/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 22 May 2025 22:32:56 +0000 (16:32 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 22 May 2025 22:33:29 +0000 (16:33 -0600)
source/base/mpi.cc

index f3cc845fe1d93cb6ccdd6ded491a0c0fcf148b6f..e8d9fcbddd7e2a7eb19fe4516d736c2d3a8fa9a2 100644 (file)
 
 #include <boost/serialization/utility.hpp>
 
+// In this file, we use offsetof, which is a macro. When compiling
+// with C++20 modules, this presents a problem because we wrap all of
+// namespace std -- and then don't have access to macros. As a
+// consequence, we really do need the following #include, even when
+// building modules:
+#include <cstddef> // Do not convert for module purposes
 #include <iostream>
 #include <limits>
 #include <numeric>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.