Skip to content

book: clarify that typeof is not a standard C++ feature#310

Merged
changkun merged 1 commit into
masterfrom
fix/286-typeof
Jun 7, 2026
Merged

book: clarify that typeof is not a standard C++ feature#310
changkun merged 1 commit into
masterfrom
fix/286-typeof

Conversation

@changkun

@changkun changkun commented Jun 7, 2026

Copy link
Copy Markdown
Owner

typeof was presented as a familiar feature, but it is a non-standard extension (GCC/Clang) that was standardized only in C23 and has never been part of standard C++. Add a clarifying note in both languages.

Fixes #286

typeof was presented as a familiar feature, but it is a non-standard
extension (GCC/Clang) that was only standardized in C23 and has never
been part of standard C++. Add a clarifying note in both languages.

Fixes #286
@changkun changkun merged commit d12c789 into master Jun 7, 2026
@changkun changkun deleted the fix/286-typeof branch June 7, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2.3 中的 typeof 不是 C++ 中的标准特性

1 participant