In advance, thank you for your help. I am trying to initialize an object in C++ depending on certain parameter. Below is the source code I am using.
EventStream<complex<Lambda>> evstrTrain(fileTrain, evlsTrain);
EventStream<Lambda> evstrTrain(fileTrain, evlsTrain);
I am declaring and calling the constructor for 'evstrTrain' inside the if block, however, in the second if this is not seen and the compiler generates an "undeclared identifier" error, for the part when evstrTrain.SetRandomOrder is called. I need to this quite a few times in my code, can anybody tell me a workaround for this please? I am using Visual Studio C++ 2005.