"Do you have an another struct / class / namespace with the same name? (OffDist) These members may come from an other instance." No,I am sure. The second construct function of OffDist class,Is mistake for there are 2 "OffDist()(double dDist,double iAlong,double iPerp)" if I remove the middle "()",Everything is OK.So May find a solution to alart user the second construct is wrong!(i.e When red line under it)
We try to provide assistance with incomplete thus not compiling code, but unfortunately there are limitations. Hopefully you don't run into this situation every day :) Our underlining method cannot catch every type of mistake and also, there are valid underlines. e.g. you use a variable before (in time) you declare it which is valid since nobody will tell you which order you must write the code. So we won't complain, "alert" the user because there is an undefined symbol which he wants to use. It would be distracting and also unnecessary in a lot of cases. We just try to (silently) provide assistance with not (yet) compiling code as well, but unfortunately it will never be perfect. Hope it makes sense :)