mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 20:32:49 +00:00
Workaround a C++11 issue
This commit is contained in:
parent
23cf4055a0
commit
ca608547e5
@ -260,7 +260,7 @@ template <typename T> class noncopyable_range {
|
||||
};
|
||||
|
||||
TEST(ranges_test, range) {
|
||||
auto w = noncopyable_range<int>(3u, 0);
|
||||
auto&& w = noncopyable_range<int>(3u, 0);
|
||||
EXPECT_EQ(fmt::format("{}", w), "[0, 0, 0]");
|
||||
EXPECT_EQ(fmt::format("{}", noncopyable_range<int>(3u, 0)), "[0, 0, 0]");
|
||||
|
||||
@ -383,7 +383,7 @@ TEST(ranges_test, join_sentinel) {
|
||||
}
|
||||
|
||||
TEST(ranges_test, join_range) {
|
||||
auto w = noncopyable_range<int>(3u, 0);
|
||||
auto&& w = noncopyable_range<int>(3u, 0);
|
||||
EXPECT_EQ(fmt::format("{}", fmt::join(w, ",")), "0,0,0");
|
||||
EXPECT_EQ(fmt::format("{}", fmt::join(noncopyable_range<int>(3u, 0), ",")),
|
||||
"0,0,0");
|
||||
|
Loading…
Reference in New Issue
Block a user