Solved: 32 - Constexpr and Nullptr
This commit is contained in:
1 parent
8807a9228c
commit
2ec26ecd04
2 files changed
+1
-5
No files matched your search
@@ -7,7 +7,7 @@ namespace cpp11 {
|
||||
enum class Color { Red, Green, Blue };
|
||||
|
||||
[[nodiscard]] auto to_index(Color color) -> int;
|
||||
[[nodiscard]] auto square(int value) -> int;
|
||||
[[nodiscard]] constexpr auto square(const int value) -> int { return value * value; }
|
||||
[[nodiscard]] auto find_null(int* ptr) -> int*;
|
||||
|
||||
} // namespace cpp11
|
||||
Reference in new issue
Block a user