Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#83 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
compilers

Research direction

Start by reproducing the examples in the issue with Wave and gcc, covering decimal and hexadecimal C++14 literals containing single-quote separators. Done means Wave accepts these literals as single integer values and produces the same outputs shown in the issue.

Written by the indexing model from the issue text.

Description

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.

Dominant language
C++
Stars
29
Forks
55
Avg merge
4d 13h
Merged PRs (30d)
1

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/wave

All issues in boostorg/wave

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.