Skip to content

Commit

Permalink
Updates using latest compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasfertig committed Aug 3, 2022
1 parent 7c70351 commit 7eebcbd
Show file tree
Hide file tree
Showing 281 changed files with 270 additions and 827 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
gcc_version: 11,
}

# Clang-13
# Clang-14
- {
name: "Linux Clang 13",
name: "Linux Clang 14",
os: ubuntu-20.04,
build_type: Release,
cxx: "clang++-13",
clang_version: 13,
cxx: "clang++-14",
clang_version: 14,
libcxx: true
}

Expand All @@ -48,7 +48,7 @@ jobs:
os: windows-latest,
build_type: Release,
cxx: "cl",
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
}

steps:
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
)
endif()
- name: Install Clang 13
- name: Install Clang 14
id: install_clang_11
if: startsWith(matrix.config.os, 'ubuntu') && startsWith(matrix.config.cxx, 'clang++-')
shell: bash
Expand Down Expand Up @@ -133,6 +133,10 @@ jobs:
run: |
sudo apt-get install libc++-${{ matrix.config.clang_version }}-dev libc++abi-${{ matrix.config.clang_version }}-dev
- name: Setup MSVC Dev
if: "startsWith(matrix.config.os, 'Windows')"
uses: ilammy/msvc-dev-cmd@v1

- name: Configure
id: cmake_configure
shell: cmake -P {0}
Expand Down
1 change: 0 additions & 1 deletion 01.01-variadicTemplateSum2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.02-variableTemplate0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.05-variadicTemplateSum3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.06-simpleRequirement0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.07-nestedRequirement0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.08-compoundRequirement0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.09-typeRequirement0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.10-compoundRequirement1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.11-compoundRequirement2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.12-testingRequirements0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.14-invocable0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.15-invocable1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.16-constexprFunctionInConcept0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
9 changes: 1 addition & 8 deletions 01.16-constexprFunctionInConcept0/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <array>
#include <cstddef>

#if not defined(_MSC_VER)
// #A A helper function with a default parameter
constexpr auto GetSize(const auto& t = {})
{
Expand All @@ -25,10 +24,4 @@ int main()
std::array<int, 1> a{};

SendOnePing(a);
}
#else
int main()
{
# pragma message("not supported")
}
#endif
}
1 change: 0 additions & 1 deletion 01.18-vectorsSize0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.21-vectorsSize1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.22-validateInDebugModeIfExists0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.24-optional0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.26-optional1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
4 changes: 2 additions & 2 deletions 01.26-optional1/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
struct copyable {};

struct notCopyable {
notCopyable(const notCopyable&) = delete;
notCopyable(const notCopyable&) = delete;
notCopyable operator=(const notCopyable&) = delete;
};

Expand All @@ -20,7 +20,7 @@ class optional
};

struct NotCopyable {
NotCopyable(const NotCopyable&) = delete;
NotCopyable(const NotCopyable&) = delete;
NotCopyable& operator=(const NotCopyable&) = delete;
};

Expand Down
1 change: 0 additions & 1 deletion 01.27-optional2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
2 changes: 1 addition & 1 deletion 01.27-optional2/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ optional<T>::optional(
{}

struct NotCopyable {
NotCopyable(const NotCopyable&) = delete;
NotCopyable(const NotCopyable&) = delete;
NotCopyable& operator=(const NotCopyable&) = delete;
};

Expand Down
1 change: 0 additions & 1 deletion 01.28-optional3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
2 changes: 1 addition & 1 deletion 01.28-optional3/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class optional {
};

struct NotCopyable {
NotCopyable(const NotCopyable&) = delete;
NotCopyable(const NotCopyable&) = delete;
NotCopyable& operator=(const NotCopyable&) = delete;
};

Expand Down
1 change: 0 additions & 1 deletion 01.29-optional4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
2 changes: 1 addition & 1 deletion 01.29-optional4/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class optional {
#endif

struct NotCopyable {
NotCopyable(const NotCopyable&) = delete;
NotCopyable(const NotCopyable&) = delete;
NotCopyable& operator=(const NotCopyable&) = delete;
};

Expand Down
1 change: 0 additions & 1 deletion 01.32-optional5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
2 changes: 1 addition & 1 deletion 01.32-optional5/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ optional<T>::~optional() requires NotTriviallyDestructible<T> &&
#endif

struct NotCopyable {
NotCopyable(const NotCopyable&) = delete;
NotCopyable(const NotCopyable&) = delete;
NotCopyable& operator=(const NotCopyable&) = delete;
};

Expand Down
1 change: 0 additions & 1 deletion 01.33-optional6/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
2 changes: 1 addition & 1 deletion 01.33-optional6/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ optional<T>::~optional() requires NotTriviallyDestructible<T> &&
#endif

struct NotCopyable {
NotCopyable(const NotCopyable&) = delete;
NotCopyable(const NotCopyable&) = delete;
NotCopyable& operator=(const NotCopyable&) = delete;
};

Expand Down
1 change: 0 additions & 1 deletion 01.34-isSameConcept0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.36-isSameConcept1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.37-isSameConcept2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.38-isSameConcept3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.40-printSorted0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 01.42-printSorted1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 02.01-limitlessSequenceWithoutCoroutines0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
1 change: 0 additions & 1 deletion 02.04-coroutineLimitlessSequence0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(MSVC)
add_definitions(/wd4996) # 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
add_definitions(/wd4267)
add_definitions(/wd4505)
add_definitions(/await) # enable coroutine support

# Use sane and nice C++ for MSVC.
# This makes alternative tokens (not, and, ...) as actual keywords and
Expand Down
Loading

0 comments on commit 7eebcbd

Please sign in to comment.