Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ endif()
cpmaddpackage("gh:catchorg/Catch2@3.3.2")
endif()

if(NOT TARGET CLI11::CLI11)
cpmaddpackage("gh:CLIUtils/CLI11@2.3.2")
endif()

if(NOT TARGET ftxui::screen)
cpmaddpackage("gh:ArthurSonzogni/FTXUI#e23dbc7473654024852ede60e2121276c5aab660")
endif()
Expand Down
2 changes: 1 addition & 1 deletion cmake/CompilerWarnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function(
set(CLANG_WARNINGS
-Wall
-Wextra # reasonable and standard
-Wshadow # warn the user if a variable declaration shadows one from a parent context
#-Wshadow # warn the user if a variable declaration shadows one from a parent context
-Wnon-virtual-dtor # warn the user if a class with virtual functions has a non-virtual destructor. This helps
# catch hard to track down memory errors
-Wold-style-cast # warn for c-style casts
Expand Down
4 changes: 4 additions & 0 deletions cmake/StandardProjectSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ else()
message(STATUS "No colored compiler diagnostic set for '${CMAKE_CXX_COMPILER_ID}' compiler.")
endif()

# Enable __cplusplus makro on MSVC which is disabled by default
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:/Zc:__cplusplus>)
endif()

# run vcvarsall when msvc is used
include("${CMAKE_CURRENT_LIST_DIR}/VCEnvironment.cmake")
Expand Down
4 changes: 2 additions & 2 deletions test/initial_draft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class chain {
/// for computing the result type of this chain.
static consteval auto result_type_helper(Tail&& tail, segment<Applicator, Fs...>&& head) {
return detail::fold_over(
[](auto fold, auto&& first, auto&&... rest) {
[]([[maybe_unused]] auto fold, auto&& first, auto&&... rest) {
if constexpr (sizeof...(rest) == 0) {
return [_segment = STLAB_FWD(first)](auto&&... args) mutable {
return std::move(_segment).result_type_helper(STLAB_FWD(args)...);
Expand All @@ -141,7 +141,7 @@ class chain {
template <class R>
auto expand(const R& receiver) && {
return detail::fold_over(
[receiver](auto fold, auto&& first, auto&&... rest) {
[receiver]([[maybe_unused]] auto fold, auto&& first, auto&&... rest) {
if constexpr (sizeof...(rest) == 0) {
return [receiver,
_segment = STLAB_FWD(first).append(receiver)](auto&&... args) mutable {
Expand Down
Loading