Skip to content

Commit 67903df

Browse files
committedJun 18, 2024
Remove clang workarounds
1 parent 209c854 commit 67903df

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed
 

‎README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# DCTL: Draughts and Checkers Template Library
22

33
[![Language](https://img.shields.io/badge/language-C++-blue.svg)](https://isocpp.org/)
4-
[![Standard](https://img.shields.io/badge/c%2B%2B-20-blue.svg)](https://en.wikipedia.org/wiki/C%2B%2B#Standardization)
4+
[![Standard](https://img.shields.io/badge/c%2B%2B-23-blue.svg)](https://en.wikipedia.org/wiki/C%2B%2B#Standardization)
55
[![License](https://img.shields.io/badge/license-Boost-blue.svg)](https://opensource.org/licenses/BSL-1.0)
66
[![Lines of Code](https://tokei.rs/b1/github/rhalbersma/dctl?category=code)](https://github.com/rhalbersma/dctl)
77

@@ -45,12 +45,12 @@ The DCTL does not yet provide a fully functioning game engine that can be plugge
4545

4646
## Requirements
4747

48-
These header-only libraries depend on the C++ Standard Library and [Boost](http://boost.org) and are continuously being tested with the following conforming conforming [C++20](http://www.open-std.org/jtc1/sc22/wg21/prot/14882fdis/n4860.pdf) compilers:
48+
These header-only libraries depend on the C++ Standard Library and [Boost](http://boost.org) and are continuously being tested with the following conforming conforming [C++23](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/n4950.pdf) compilers:
4949

50-
| Platform | Compiler | Versions | Build |
51-
| :------- | :------- | -------: | :---- |
52-
| Linux | GCC | 14, 15-SVN | CI currently being ported to GitHub Actions |
53-
| Linux | Clang | 19-SVN | CI currently being ported to GitHub Actions |
50+
| Platform | Compiler | Versions | Build |
51+
| :------- | :------- | -------: | :---- |
52+
| Linux | GCC | 14, 15-trunk | CI currently being ported to GitHub Actions |
53+
| Linux | Clang | 18, 19-trunk | CI currently being ported to GitHub Actions |
5454

5555
## Installation
5656

‎example/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ set(cxx_compile_options_warnings
3030
-Wno-unknown-warning-option # forward compatibility for new Clang warnings
3131
-Wno-c++98-compat
3232
-Wno-c++98-compat-pedantic
33-
-Wno-assume
3433
-Wno-bitwise-instead-of-logical
3534
-Wno-covered-switch-default
3635
-Wno-ctad-maybe-unsupported # triggered by <> elision for <functional> operators

‎include/dctl/egdb/index.hpp

+2-7
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,8 @@ class subdivision
6464
using mask_type = core:: mask_t<Position>;
6565
using set_type = core:: set_t<Position>;
6666

67-
private:
68-
static constexpr auto CLANG_WORKAROUND_bp_squares = mask_type::squares - mask_type::promotion(core::black_c);
69-
static constexpr auto CLANG_WORKAROUND_wp_squares = mask_type::squares - mask_type::promotion(core::white_c);
70-
71-
public:
72-
static constexpr auto bp_squares = static_cast<int>(CLANG_WORKAROUND_bp_squares.size());
73-
static constexpr auto wp_squares = static_cast<int>(CLANG_WORKAROUND_wp_squares.size());
67+
static constexpr auto bp_squares = static_cast<int>((mask_type::squares - mask_type::promotion(core::black_c)).size());
68+
static constexpr auto wp_squares = static_cast<int>((mask_type::squares - mask_type::promotion(core::white_c)).size());
7469
static constexpr auto bk_squares = static_cast<int>(mask_type::squares.size());
7570
static constexpr auto wk_squares = static_cast<int>(mask_type::squares.size());
7671

‎test/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ set(cxx_compile_options_warnings
3737
-Wno-unknown-warning-option # forward compatibility for new Clang warnings
3838
-Wno-c++98-compat
3939
-Wno-c++98-compat-pedantic
40-
-Wno-assume
4140
-Wno-bitwise-instead-of-logical
4241
-Wno-covered-switch-default
4342
-Wno-ctad-maybe-unsupported

0 commit comments

Comments
 (0)
Please sign in to comment.