Skip to content

Commit

Permalink
Github actions doesn't like std::format, so working around that.
Browse files Browse the repository at this point in the history
  • Loading branch information
nrupprecht committed Apr 4, 2024
1 parent 9dc50fb commit 8fe28e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ include(FetchContent)
FetchContent_Declare(
Lightning
GIT_REPOSITORY https://github.com/nrupprecht/Lightning.git
GIT_TAG f81f107
GIT_TAG 4f2e0aa
)
FetchContent_MakeAvailable(Lightning)
include_directories(${Lightning_SOURCE_DIR}/include)
Expand Down
3 changes: 1 addition & 2 deletions source/NeverSQL/utility/PageDump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "NeverSQL/utility/PageDump.h"
// Other files.
#include <numeric>
#include <format>

#include "NeverSQL/data/internals/KeyPrinting.h"
#include "NeverSQL/utility/DisplayTable.h"
Expand Down Expand Up @@ -75,7 +74,7 @@ void PageInspector::NodePageDump(const BTreeNodeMap& node, std::ostream& out) {
table.AddColumn(
"Flags",
flags,
[](const std::byte& flag) { return std::format("0b{:b}", static_cast<uint8_t>(flag)); },
[](const std::byte& flag) { return lightning::formatting::Format("{:b}", static_cast<uint8_t>(flag)); },
"BWHITE",
"BBLUE");

Expand Down

0 comments on commit 8fe28e7

Please sign in to comment.