M
Martijn
Hi,
The following code-fragment won't compile in the .Net-studio but it does
compile in Borland. So is anyone familiar with this problem, or someone
knows how to solve it?
void MidpointSolver::Solve(float* next_state, const float* current_state,
float time, float h, const unsigned int dim)
{
float derivative_state[dim];
...
}
The reported error is: C2057 - 'expected constant expression'. So the
compiler doesnt see 'dim' as an constant or something like that?!?
Anyone?
The following code-fragment won't compile in the .Net-studio but it does
compile in Borland. So is anyone familiar with this problem, or someone
knows how to solve it?
void MidpointSolver::Solve(float* next_state, const float* current_state,
float time, float h, const unsigned int dim)
{
float derivative_state[dim];
...
}
The reported error is: C2057 - 'expected constant expression'. So the
compiler doesnt see 'dim' as an constant or something like that?!?
Anyone?