ddemidov / mba

Scattered data interpolation with multilevel B-Splines
MIT License
73 stars 23 forks source link

Run error #11

Open iuming opened 4 years ago

iuming commented 4 years ago

Hello, when I use your sample program to run, such an error occurred, how can I solve it?

Run_error

ddemidov commented 4 years ago

Looks like you are using an old (pre C++11) compiler.

iuming commented 4 years ago

Looks like you are using an old (pre C++11) compiler.

Thank you, but I am using visual studio 19 community edition, it seems to support the C++17 standard.

iuming commented 4 years ago

I used MingW to compile and run, and it succeeded. Is it because this program compiles with C++17 standard and will cause errors?

ddemidov commented 4 years ago

I don't have access to Windows/Visual Studio compiler in order to try this, but you should be able to rephrase the problematic line so that your compiler would not complain anymore. Line 5 in your screenshot fills the vector with 6 points using the initializer_list constructor. You can rewrite it into an explicit loop and push_back() the points into the vector one by one.

iuming commented 4 years ago

I don't have access to Windows/Visual Studio compiler in order to try this, but you should be able to rephrase the problematic line so that your compiler would not complain anymore. Line 5 in your screenshot fills the vector with 6 points using the initializer_list constructor. You can rewrite it into an explicit loop and push_back() the points into the vector one by one.

Ok, thank you very much for your help, i will try it.