I have a class that where I want to store three datapoints for each pixel in an image. I thought std::tuple would be a nice way to do this so:
class CameraManager {
private:
static const int width_ = 700;
static const int height_ = 574;
//this causes a segfault...
std::tuple<double,double,bool> mapping_[width_][height_];
public:
CameraManager();
}
The segfault happens directly at main(int argc, char ** argv) because I have a camera manager object declared in this function.
What is going on here?