最終更新日 :2025/12/04

most vexing parse

名詞
日本語の意味
C++プログラミングにおける、変数の宣言が意図せず関数宣言と解釈されるという構文上のあいまい性の現象。 / C++のパーサが、変数の初期化と関数宣言を区別できず、結果として予期しない関数定義と判断してしまう問題。
このボタンはなに?

山括弧(<>)を使ってローカルオブジェクトを宣言しようとしたとき、コンパイラは宣言が関数プロトタイプとして解釈されてしまうC++の構文曖昧性に引っかかってしまいました。

復習用の問題

(programming) A specific form of syntactic ambiguity resolution in the C++ programming language, whereby attempts to declare a variable may be undesirably interpreted as attempts to declare a function.

音声機能が動作しない場合はこちらをご確認ください
正解を見る

most vexing parse

When I tried to declare a local object with angle brackets, the compiler fell victim to the most vexing parse and interpreted my declaration as a function prototype.

正解を見る

When I tried to declare a local object with angle brackets, the compiler fell victim to the most vexing parse and interpreted my declaration as a function prototype.

音声機能が動作しない場合はこちらをご確認ください

英語 - 英語

項目の編集設定
  • 項目の編集権限を持つユーザー - すべてのユーザー
  • 項目の新規作成を審査する
  • 項目の編集を審査する
  • 項目の削除を審査する
  • 重複の恐れのある項目名の追加を審査する
  • 項目名の変更を審査する
  • 審査に対する投票権限を持つユーザー - 編集者
  • 決定に必要な投票数 - 1
例文の編集設定
  • 例文の編集権限を持つユーザー - すべてのユーザー
  • 例文の削除を審査する
  • 審査に対する投票権限を持つユーザー - 編集者
  • 決定に必要な投票数 - 1
問題の編集設定
  • 問題の編集権限を持つユーザー - すべてのユーザー
  • 審査に対する投票権限を持つユーザー - 編集者
  • 決定に必要な投票数 - 1
編集ガイドライン

ログイン / 新規登録

 

アプリをダウンロード!
DiQt

DiQt(ディクト)

無料

★★★★★★★★★★