Skip to content

Commit 6d7d818

Browse files
committed
Update CI for C++20
1 parent 58b16fc commit 6d7d818

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: |
4343
cat > CMakeLists.txt <<'EOF'
4444
project(xrobot_mod_test CXX)
45-
set(CMAKE_CXX_STANDARD 17)
45+
set(CMAKE_CXX_STANDARD 20)
4646
add_executable(xr_test main.cpp)
4747
set(XROBOT_MODULES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Modules/)
4848
add_subdirectory(libxr)

SharedTopicClient.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class SharedTopicClient : public LibXR::Application {
100100
LibXR::min(client->tx_queue_.Size(), client->tx_buffer_.size_);
101101
if (size > 0 && client->tx_queue_.PopBatch(
102102
static_cast<uint8_t*>(client->tx_buffer_.addr_),
103-
size) == ErrorCode::OK) {
103+
size) == LibXR::ErrorCode::OK) {
104104
client->uart_->Write(
105105
{static_cast<uint8_t*>(client->tx_buffer_.addr_), size}, op_none);
106106
}

0 commit comments

Comments
 (0)