From 262d94964f0dd49aec92d095ff82d046a7b910a2 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Fri, 12 Apr 2024 23:24:20 -0400 Subject: [PATCH] Lets try C++20 --- CMakeLists.txt | 4 ++-- include/properties/property.h | 2 +- pcbnew/dialogs/dialog_board_statistics.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7465b19c22..b4657d01a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -269,8 +269,8 @@ set( CMAKE_VISIBILITY_INLINES_HIDDEN ON ) # Global setting: build everything position independent set( CMAKE_POSITION_INDEPENDENT_CODE ON ) -# Global setting: Use C++17 -set(CMAKE_CXX_STANDARD 17) +# Global setting: Use C++20 +set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/include/properties/property.h b/include/properties/property.h index 77e45fc702..83603b6f4a 100644 --- a/include/properties/property.h +++ b/include/properties/property.h @@ -719,7 +719,7 @@ private: std::unordered_map m_reverseMap; T m_undefined; // Returned if the string is not recognized - ENUM_MAP() + ENUM_MAP() { } }; diff --git a/pcbnew/dialogs/dialog_board_statistics.h b/pcbnew/dialogs/dialog_board_statistics.h index f19bd7906a..9226a087bd 100644 --- a/pcbnew/dialogs/dialog_board_statistics.h +++ b/pcbnew/dialogs/dialog_board_statistics.h @@ -49,7 +49,7 @@ public: template struct LINE_ITEM { - LINE_ITEM( T aAttribute, const wxString& aTitle ) : + LINE_ITEM( T aAttribute, const wxString& aTitle ) : attribute( aAttribute ), title( aTitle ), qty( 0 )