Skip to content

Commit ae902e6

Browse files
authored
use C++ 20 (#82)
1 parent fd78318 commit ae902e6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- uses: actions/setup-node@v4
3636
with:
37-
node-version: 20.x
37+
node-version: 22.x
3838

3939
- name: Install node dependencies
4040
run: |

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.27)
22

33
project(fcitx5-webview)
44

5-
set(CMAKE_CXX_STANDARD 17)
5+
set(CMAKE_CXX_STANDARD 20)
66

77
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
88

include/webview_candidate_window.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class WebviewCandidateWindow : public CandidateWindow {
134134
template <typename F> inline void bind(const std::string &name, F f) {
135135
using Ret = typename function_traits<F>::return_type;
136136
using ArgsTp = typename function_traits<F>::args_tuple;
137-
auto handler = [=](std::string args_json) -> std::string {
137+
auto handler = [=, this](std::string args_json) -> std::string {
138138
auto j = nlohmann::json::parse(args_json);
139139
ArgsTp args;
140140
if (std::tuple_size<ArgsTp>() > j.size()) {

0 commit comments

Comments
 (0)