Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[LOW] Support C++14 integer literal digit separators

クローズ
#83 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp
領域
compilers

調査の方向性

まず、Wave と gcc を使って issue の例を再現し、シングルクォートの区切り文字を含む 10 進および 16 進の C++14 リテラルを対象にします。Wave がこれらのリテラルを単一の整数値として受け入れ、issue に示されているものと同じ出力を生成すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Filing this chiefly for the record. cppreference states that since C++14:

Optional single quotes(') may be inserted between the digits as a separator. They are ignored by the compiler.

I verified this is true in gcc. At this time Wave does not understand them. For example:

#include <iostream>

// can insert single quotes between digits starting in C++14:
int foo = 1'2'3;   // wave thinks this is two ints and one char literal
int bar = 0x2'3;   // wave thinks this is two ints and a single quote

int main() {
    std::cout << foo << "\n";   // 123
    std::cout << bar << "\n";   // 35

    return 0;
}

I don't need this functionality but wanted to record it for some future maintainer.

主要言語
C++
スター
29
フォーク
56
平均マージ
1日 15時間
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

boostorg/wave のほかの issue

boostorg/wave の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。