Skip to content

Commit

Permalink
Workaround fmtlib 8.1.1 compiler error on GCC
Browse files Browse the repository at this point in the history
Bug report: fmtlib/fmt#2769
  • Loading branch information
nyanpasu64 committed Feb 16, 2022
1 parent 2101869 commit 970ed9a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/doc/validate.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#pragma once

// format.h contains fmt::memory_buffer, core.h doesn't.
// Include <fmt/format.h> before "doc.h" to avoid partial specialization errors in
// UNITTEST builds (where doc.h includes and instantiates <fmt/core.h>) on GCC.
#include <fmt/format.h>
#include <fmt/compile.h>

#include "validate_common.h"
#include "doc.h"
#include "util/copy_move.h"

#include <fmt/format.h> // format.h contains fmt::memory_buffer, core.h doesn't
#include <fmt/compile.h>

#include <cstdint>
#include <optional>
#include <vector>
Expand Down

0 comments on commit 970ed9a

Please sign in to comment.