Silly mistakes are there. Use below code compiles in VS2013
#include <vector>
struct A : public std ::vector<A>
{
A();
virtual ~A();
};
More Related Contents:
- Thou shalt not inherit from std::vector
- How to read / write a struct in Binary Files?
- Struct inheritance in C++
- Why do I have to access template base class members through the this pointer?
- Why does C++ disallow anonymous structs?
- Why isn’t vector a STL container?
- reduce the capacity of an stl vector
- How to sum up elements of a C++ vector?
- Subclass/inherit standard containers?
- What is the difference between std::array and std::vector? When do you use one over other? [duplicate]
- how do you insert the value in a sorted vector?
- C++ for-loop – size_type vs. size_t
- Reorder vector using a vector of indices [duplicate]
- C++ std::vector vs array in the real world
- Struct initialization of the C/C++ programming language?
- Vector that can have 3 different data types C++
- c++: can vector contain objects of type Derived?
- Why can’t I create a vector of lambdas (of the same type) in C++11?
- How to call derived class method from base class pointer?
- How to downsize std::vector?
- Is std::vector memory freed upon a clear?
- Getting a vector into a function that expects a vector
- How can I get the maximum or minimum value in a vector?
- When to use C++ private inheritance over composition?
- Class inherited from class without default constructor
- Initializing a ublas vector from a C array
- What is the meaning of double curly braces initializing a C-struct?
- What happen to pointers when vectors need more memory and realocate memory?
- No == operator found while comparing structs in C++
- What does slicing mean in C++?