Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
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> classbuffer_t{public: T& alloc(); voidfree(T& item); private: T data[BufSize]}buffer_t<int, 100> buf; // 100 as template parameterExpected Description
A modified paragraph template <typename T, int BufSize> classbuffer_t{public: T& alloc(); voidfree(T& item); private: T data[BufSize]}; // small ; was missing!buffer_t<int, 100> buf; // 100 as template parameterAttachments
Attach screenshot or files if necessary.

By the way, special thanks for the book and the author! It is very helpful!
Metadata
Metadata
Assignees
Labels
No labels