Skip to content

Commit 8c2fdc0

Browse files
committed
砍掉对stdformat的使用
1 parent 0a69abd commit 8c2fdc0

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ option(BuildCodeFormatServer "Build CodeFormatServer" ON)
1010
option(EnableTest "Test project" ON)
1111
option(BuildInWordsDictionary "Use BuildInWordsDictionary" ON)
1212

13-
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
14-
#add_definitions(-DMSVC)
15-
elseif(APPLE)
13+
if(APPLE)
1614
include(CheckCCompilerFlag)
1715

1816
set(CMAKE_REQUIRED_LINK_OPTIONS "-arch;x86_64")

include/Util/format.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
#pragma once
22

33

4-
#if defined(MSVC) && _MSVC_LANG > 202002L
5-
#include <format>
6-
7-
using std::format;
8-
9-
#else // gcc 怎么还没实现format啊
104
#include <string>
115
#include <string_view>
126
#include <vector>
@@ -221,4 +215,3 @@ std::string format(std::string_view fmt, ARGS ... args)
221215
}
222216
return message.str();
223217
}
224-
#endif

0 commit comments

Comments
 (0)