Skip to content
Merged
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
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function(TestHasWindowsnumerics OUTPUT_VARNAME)
include(CheckCXXSourceCompiles)
check_cxx_source_compiles("
#define _WINDOWS_NUMERICS_NAMESPACE_ winrt::Windows::Foundation::Numerics
#define _WINDOWS_NUMERICS_BEGIN_NAMESPACE_ WINRT_EXPORT namespace winrt::Windows::Foundation::Numerics
#define _WINDOWS_NUMERICS_BEGIN_NAMESPACE_ namespace winrt::Windows::Foundation::Numerics
#define _WINDOWS_NUMERICS_END_NAMESPACE_
#include <windowsnumerics.impl.h>
int main() {}
Expand Down
3 changes: 3 additions & 0 deletions test/test_cpp20/format.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "pch.h"

#ifdef __cpp_lib_format
#include <format>

struct stringable : winrt::implements<stringable, winrt::Windows::Foundation::IStringable>
Expand Down Expand Up @@ -37,3 +39,4 @@ TEST_CASE("format")
}
#endif
}
#endif
3 changes: 3 additions & 0 deletions test/test_cpp20/ranges.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "pch.h"

#ifdef __cpp_lib_ranges
#include <algorithm>
#include <ranges>

Expand Down Expand Up @@ -46,3 +48,4 @@ TEST_CASE("ranges")
REQUIRE((result == std::vector{ 2, 4, 6 }));
}
}
#endif