-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Typos and some C++ code for screenshot
- Loading branch information
1 parent
558a43a
commit 6e44594
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#pragma once | ||
|
||
#define CONCATENATE_IMPL(s1, s2) s1##s2 | ||
#define CONCATENATE(s1, s2) CONCATENATE_IMPL(s1, s2) | ||
#define ANONYMOUS_VARIABLE(str) CONCATENATE(str, __LINE__) | ||
|
||
constexpr int pi = 314LLu; | ||
thread_local decltype(pi) rage = 0b10; | ||
|
||
[[deprecated("abc")]] char16_t *f() noexcept { return nullptr; } | ||
|
||
static_assert(std::is_copy_constructible<T>::value, "Swap requires copying"); | ||
|
||
template <typename T> struct Foo { | ||
static_assert(std::is_floating_point<T>::value, | ||
"Foo<T>: T must be floating point"); | ||
}; | ||
|
||
struct A final : Foo { | ||
A() = default; | ||
[[noreturn]] virtual void foo() override; | ||
}; | ||
|
||
template <typename T> concept bool EqualityComparable = requires(T a, T b) { | ||
{ a == b } -> bool; | ||
}; |