mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
60db0e5ef9
This updates `fmt` to the latest version and moves to just being a copy of their repo to make updating easier (no editing their cmake / figuring out which files to minimally include). The motivation for this is now that we switched to C++ 20, there were a ton of deprecated function usages that is going away in future compiler versions. This gets rid of all those warnings.
18 lines
454 B
C++
Vendored
Generated
18 lines
454 B
C++
Vendored
Generated
// Formatting library for C++ - the core API
|
|
//
|
|
// Copyright (c) 2012 - present, Victor Zverovich
|
|
// All rights reserved.
|
|
//
|
|
// For the license information refer to format.h.
|
|
|
|
#include <vector>
|
|
|
|
#include "fmt/ranges.h"
|
|
#include "gtest/gtest.h"
|
|
|
|
// call fmt::format from another translation unit to test ODR
|
|
TEST(ranges_odr_test, format_vector) {
|
|
auto v = std::vector<int>{1, 2, 3, 5, 7, 11};
|
|
EXPECT_EQ(fmt::format("{}", v), "[1, 2, 3, 5, 7, 11]");
|
|
}
|