Lets try C++20

This commit is contained in:
Marek Roszko 2024-04-12 23:24:20 -04:00
parent af2c52cf0a
commit 262d94964f
3 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -719,7 +719,7 @@ private:
std::unordered_map<wxString, T> m_reverseMap;
T m_undefined; // Returned if the string is not recognized
ENUM_MAP<T>()
ENUM_MAP()
{
}
};

View File

@ -49,7 +49,7 @@ public:
template <typename T>
struct LINE_ITEM
{
LINE_ITEM<T>( T aAttribute, const wxString& aTitle ) :
LINE_ITEM( T aAttribute, const wxString& aTitle ) :
attribute( aAttribute ),
title( aTitle ),
qty( 0 )