Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++14][言語機能] constexpr緩和の記事に数点追記 #1016

Merged
merged 2 commits into from Jan 5, 2023

Conversation

wx257osn2
Copy link
Member

https://twitter.com/non_archimedean/status/1610532249472233473 の文脈です

  • 関数引数や戻り値型に非const参照が使えるようになったことが明記されていなかったため,サンプルコードとして使用している戻り値void許可のとこに追記
  • constexprコンストラクタがbodyを持てるようになった件について記載がなかったので追記

ということで質問なんですが,基本的なスタンスとしてconstexpr のページではC++11の話しかしない,という方針であるの(が私の解釈なんですが,これ)は正しいですか?

@faithandbrave
Copy link
Member

ありがとうございます。修正としては問題ないかと思います。

現在の方針としては、言語機能は差分の解説になるので、C++11のconstexprのページではC++11の仕様についてしか書けないですね。
方針を変える場合は相談することになりますが、少なくとも差分ではない言語機能全体の解説を書くマンパワーはいまのところないかと思います。
必要であれば方針変更の相談をするissueを立てていただければ。

@wx257osn2
Copy link
Member Author

実際のところ,(仮にcppreferenceのような形で差分を明示する機能が入ったとしても)記事が長大になって可読性が落ちる問題のほうが大きそうな気がしているのですよね…(特にconstexprについては変遷が激しいので) C++xx時代の〇〇についてはどちらかというと適当な人のブログとかを頼ってもらったほうが良さそうな気がしています

@wx257osn2
Copy link
Member Author

こちらもapprovedいただいたのでマージしちゃいます

@wx257osn2 wx257osn2 merged commit 932e507 into master Jan 5, 2023
@wx257osn2 wx257osn2 deleted the fix-cxx14-constexpr branch January 5, 2023 09:06
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.

None yet

2 participants