i tried to create class object into another class with constructor, I got error that 'expected a type specifier'.I research example codes and I could not find anything wrong in my code. Error is into Cotp_connection.h
file at LinkedList<uint8_t> list(0,NULL);
LinkedList.h
#include <cstdint>
#include <vector>
using namespace std;
template <class T> class LinkedList
{
public:
LinkedList() {};
LinkedList(int size, LinkedList* next) :size(size), next(next) {};
vector <T> data;
int size;
LinkedList* next;
};
Cotp_connection.h
#include "connect_tcp.h"
#include "LinkedList.h"
class Cotp_connection {
public:
LinkedList <uint8_t> list(0,NULL); // Error is here
};