Whenever I use #define T in my code I am getting about 19 errors related to a type_traits file that Xcode uses. I've lowered it to one line in one of my header files. Here is the header file:
#ifndef __SlidingWindowCompression__Utils__
#define __SlidingWindowCompression__Utils__
// DEFINITIONS:
#define CONT_FLAG 0x00
#define STOP_FLAG 0xFF
#define BYTE_SIZE 8
#define A_KEY 0x000
#define T_KEY 0x001
#define G_KEY 0x010
#define C_KEY 0x100
#define N_KEY 0x011
#define A 0x100
#define T 0x101 //ERROR RIGHT HERE WHEN INCLUDED!!!
#define G 0x110
#define C 0x111
// INCLUDES:
#include <iostream>
#include <fstream>
#include <vector>
#include <cstdint>
// FUNCTION DECLERATIONS:
std::string getKey(std::ifstream& inStream);
int getReadSize(std::ifstream& inStream);
void outputHeader(const int READ_SIZE, const std::string& KEY, std::ofstream& outStream);
bool setRead(std::string& read, std::ifstream& inStream);
void stuffit(unsigned char value, int bits, int endFlag, std::ofstream& outStream);
void setIndexAndBitset(const std::string& KEY, std::string& read, uint16_t& index, std::vector<int>& bits);
unsigned char getHex(const char readChar, const char keyChar);
#endif
If I change the name of T or don't include all of the errors go away. I can't really post the file with the error as it is 1000's of lines long. It's name is "type_traits" and most of the error are something like:
Expected a qualified name after 'typename'