Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[BUG with code missing ;] Small coding error missing ';' #302

Open
Open
[BUG with code missing ;] Small coding error missing ';'#302

Description

Actual Description

  • File Path:book/en-us/02-usability.md
  • Original paragraph: Non-type template parameter deduction
A copy of the original paragraph
template <typename T, int BufSize>
class buffer_t {
public:
T& alloc();
void free(T& item);
private:
T data[BufSize];
}

buffer_t<int, 100> buf; // 100 as template parameter

Expected Description

A modified paragraph
template <typename T, int BufSize>
class buffer_t {
public:
T& alloc();
void free(T& item);
private:
T data[BufSize];
}; // small ; was missing!

buffer_t<int, 100> buf; // 100 as template parameter

Attachments

Attach screenshot or files if necessary.

By the way, special thanks for the book and the author! It is very helpful!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions