Well I have attempted to make my version of a 3d vector and I got a really strange error in the STL files on line 485.
Assuming EveryThing Else is taken care of:
Are you using C++11? Because in earlier standards in the declaration of a 2d vector, a >> is interpreted as the >> operator. To fix this one has to do > >. Is the same thing happening with your code, with the >>>?
This has been fixed in C++11, not sure whether it handles >>> though.
Apart from that, the memory management would be horribly inefficient if any of the vectors need to be resized. Can you have a <list> of Rooms? Do Rooms have to vary in size - can they be a static size?
If you truly want a 3d space, would you not be better to use 3d positions?
The error was on line 585 in the yvar.h file
'Missing ; before namespace'
The Reason Im looking for a 3d sort of tile map is that in a 3d space I could theoretically make every cube in a voxel engine 1 value in the space, however it would seem very impractical.
I took a look at the boost library, it looks useful thats what Ill most likely use for this project, so thanks a lot for that reference.
The boost::multi_array class provides an element-preserving resize operation. The number of dimensions must remain the same, but the extent of each dimension may be increased and decreased as desired.