Skip to content

Commit 7c6be8a

Browse files
Updated to C++ 20 (#53)
1 parent c02527c commit 7c6be8a

7 files changed

Lines changed: 2 additions & 495 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ project(arcana.cpp)
1919

2020
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
2121

22-
set(CMAKE_CXX_STANDARD 17)
22+
set(CMAKE_CXX_STANDARD 20)
2323
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2424

2525
FetchContent_MakeAvailable(GSL)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You can learn more about API usage in the [arcana.cpp documentation](Source/Arca
1313
### Prerequisites
1414

1515
- CMake 3.15 or higher
16-
- A C++17 compatible compiler (Visual Studio 2019+, GCC 8+, or Clang 7+)
16+
- A C++20 compatible compiler (Visual Studio 2022+, GCC 11+, or Clang 12+)
1717

1818
### Building with CMake
1919

Source/Android/Arcana.Android.vcxproj

Lines changed: 0 additions & 186 deletions
This file was deleted.

Source/Shared/Arcana.vcxitems

Lines changed: 0 additions & 47 deletions
This file was deleted.

Source/Shared/arcana/string.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,7 @@
55
#include <locale>
66
#include <string>
77

8-
#ifdef _MSC_VER
98
#include <string_view>
10-
#else
11-
// llvm-libc++ included with Android NDK r15c hasn't yet promoted the C++1z library fundamentals
12-
// technical specification to the final C++17 specification for string_view.
13-
// Force promote the types we need up into the std namespace.
14-
#include <experimental/string_view>
15-
namespace std
16-
{
17-
using string_view = experimental::string_view;
18-
using wstring_view = experimental::wstring_view;
19-
}
20-
#endif
219

2210
namespace arcana
2311
{

Source/Windows/Arcana.Windows.Reference.vcxitems

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)