-
Notifications
You must be signed in to change notification settings - Fork 228
resolve c2146 on vs15 with area_result declaration #751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
So the solution you proposed is incorrect. We could think of some workaround if we were sure that this is e.g. a bug in the compiler. But before that I'd like to investigate something different. Recently I modified the area() algorithm to use "umbrella strategies": What Boost.Geometry headers do you include? |
|
@lpranam ^ |
|
@awulkiew I am yet to try your suggested solutions. Will update you soon :) |
Thee are all the headers we have used
No we do not use
No it is not instatiated
yes, I tried including the entire library(commit) and the result is still the same |
|
A temporary solution in fact could be to provide an indirection for derivation. What i mean by that is using multilevel inheritance we can separate the typename qualification . A working example could be something like this But as i said before this is just a temporary solution although it doesn't have any costs associated with it 🤔 |
|
@awulkiew a friendly ping. Do we have any solution for this? |
|
@lpranam Not yet. The solution you proposed does not compile with standard-conforming compilers so I can't merge it. The solution proposed by @gopi487krishna looks overly complicated to me. If you want me to propose a workaround you'll have to wait because I have to test it with VS2015 which I don't have installed right now and I'm currently busy with something else. But maybe something like this would work. Could you try to compile it with VS2015? |
|
@awulkiew your proposed solution works. Though there seems to be some problem in CI which is unrelated to the code. |
|
Ok, let's give it a try. Thanks! |
Visual Studio 2015 C++14 (Default) we encountered C2146 stating
error C2146: syntax error: missing ',' before identifier 'result_type'reference:
https://ci.appveyor.com/project/lpranam/astronomy-il73i/branch/develop/job/uo7pirc0s4v9xpb2