diff --git a/src/doc/validate.h b/src/doc/validate.h index 046dcad8..727f8fde 100644 --- a/src/doc/validate.h +++ b/src/doc/validate.h @@ -1,12 +1,15 @@ #pragma once +// format.h contains fmt::memory_buffer, core.h doesn't. +// Include before "doc.h" to avoid partial specialization errors in +// UNITTEST builds (where doc.h includes and instantiates ) on GCC. +#include +#include + #include "validate_common.h" #include "doc.h" #include "util/copy_move.h" -#include // format.h contains fmt::memory_buffer, core.h doesn't -#include - #include #include #include