Skip to content

Commit 27925da

Browse files
authored
Merge pull request #24 from frederick-vs-ja/inline-constexpr-static
更正 index.md 中缺失 `static` 的 `constexpr` 成员变量
2 parents ccc56d3 + 9297548 commit 27925da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ void try_call_foo(T &t) {
9898
```cpp
9999
template <class T, class = void>
100100
struct has_foo {
101-
inline constexpr bool value = false;
101+
static constexpr bool value = false;
102102
};
103103
104104
template <class T>
105105
struct has_foo<T, std::void_t<decltype(std::declval<T>().foo())>> {
106-
inline constexpr bool value = true;
106+
static constexpr bool value = true;
107107
};
108108
109109
template <class T>

0 commit comments

Comments
 (0)