I want to make a class that inherits from base array class, and just add some new functionality for the sake of learning.
Now when I try using this code
class checkInherit : public array
Error is
C++ argument list for class template is missing
Which I think is that I have to add some arguments. When I Peeked into Array built in array code, this is the code
// TUPLE INTERFACE TO array
template <class _Ty, size_t _Size>
class array;
template <class _Ty, size_t _Size>
struct tuple_size<array<_Ty, _Size>>
: integral_constant<size_t, _Size> { // struct to determine number of elements in array
Now is there any way I can do this?
EDIT:
My assignment at University is to make circular queue using built in arrays. Now What my thought is that If I somehow inherits from std::array and add some extra functions in it to make it act as circular queue. It might not be possible but at least I want to inherit std::array so that I can give it a try.
class checkInherit : public std::array<int, 17>).TUPLE INTERFACE TO arrayatstd::arrayandincomplete type is not allowed1at<int,17>std::dequeis used as the container, but can be changed using a template argument.