I have planned out a implementation of Conway's Game of Life which will (hopefully) give the impression of being 'infinite'. It will use a sparse array which I will make using a set. So, when a new cell is created I will add it to the set. My problem is that won't eventually the co-ordinates get bigger than an int can store?
Is this a problem I need to worry about? If so, then should I use an int_64 or something? Or should I use a bingint class?
I wouldn't worry about accidentally living forever and escaping the end of the universe with the program running the whole time.
If you're using a 32-bit system instead, then just use longlong or std::int64_t or even std::intmax_t: http://en.cppreference.com/w/cpp/header/cstdint
A 32-bit value will overflow within your natural life span, a 64-bit value will outlast the universe itself.