Update README.md (#79)

* Update README.md

As per https://en.cppreference.com/w/cpp/utility/integer_sequence, `std::make_integer_sequence` doesn't accept any parameter pack template arguments
This commit is contained in:
Semisonic
2020-02-26 02:42:09 +03:00
committed by GitHub
parent b12ea9fc7f
commit 5d8180a809
2 changed files with 2 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ std::chrono::duration_cast<std::chrono::minutes>(day).count(); // == 1440
### Compile-time integer sequences ### Compile-time integer sequences
The class template `std::integer_sequence` represents a compile-time sequence of integers. There are a few helpers built on top: The class template `std::integer_sequence` represents a compile-time sequence of integers. There are a few helpers built on top:
* `std::make_integer_sequence<T, N...>` - creates a sequence of `0, ..., N - 1` with type `T`. * `std::make_integer_sequence<T, N>` - creates a sequence of `0, ..., N - 1` with type `T`.
* `std::index_sequence_for<T...>` - converts a template parameter pack into an integer sequence. * `std::index_sequence_for<T...>` - converts a template parameter pack into an integer sequence.
Convert an array into a tuple: Convert an array into a tuple:

View File

@@ -1126,7 +1126,7 @@ std::chrono::duration_cast<std::chrono::minutes>(day).count(); // == 1440
### Compile-time integer sequences ### Compile-time integer sequences
The class template `std::integer_sequence` represents a compile-time sequence of integers. There are a few helpers built on top: The class template `std::integer_sequence` represents a compile-time sequence of integers. There are a few helpers built on top:
* `std::make_integer_sequence<T, N...>` - creates a sequence of `0, ..., N - 1` with type `T`. * `std::make_integer_sequence<T, N>` - creates a sequence of `0, ..., N - 1` with type `T`.
* `std::index_sequence_for<T...>` - converts a template parameter pack into an integer sequence. * `std::index_sequence_for<T...>` - converts a template parameter pack into an integer sequence.
Convert an array into a tuple: Convert an array into a tuple: