I’m using OSX XCode 8
in my FBullCowGame.cpp file, at the top, I define:
#define TMap std::map;
But I can’t use in in the function:
bool FBullCowGame::GuessIsIsogramHash(FString Guess) const
{
// treat 0 & 1 letter words as isograms
if(Guess.length() < 2)
{
return true;
}
// This line reports a code issue:
// "Expected '{' for function style case or type construction
TMap<char, bool> LetterSeen;
// But I can write:
std::map<char, bool> LetterSeen2;
Why wouldn’t my #define work?