Errors, bugs, questions - page 3102
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
similarly - (const A*) convert to A*.
It is not quite clear what you want to convey to fxsaber. What exactly is going on in the code is something he understands without you. It only shows a situation that shouldn't be there. The compiler should suppress such conversions.
And the *2* line compiles and works fine. Why?
The initialization list is the only legal (and specifically provided) way to initialize non-static constants.
The initialisation list is the only legal (and specifically intended) way to initialise non-static constants.
So he changed its value afterwards
So he changed her meaning afterwards.
Yeah, inattentive. Bug? The features of the initialization list should only apply to the object being constructed
Yeah, inattentive. Bug? The features of the initialisation list should only be relevant to the object being constructed
Bug. I didn't understand it at first either. That's why I'm saying that you should write it in such a way that most of the people understand it. This also applies to the interface
Bug. I didn't understand it right away either. That's why I say you should write it in such a way that the vast majority of people understand it. This also applies to the interface.
I agree about bug reports, of course.
The interface is another story. Example :
If a pilot, who knows how to fly a plane perfectly well, switches to another type of plane with a different control system, without studying the manuals, he won't understand a lot.
It is impossible to make a complex interface that even most professionals can understand without studying the documentation.
it's fine. What's the fundamental difference?
In b3095 I run a script:
If you remove the overload f1(T* & Ptr), all 5 calls return void f1<const X>(const X*const).
Is this some kind of feature?
I wanted to write this contradiction into 3 lines, but it did not work at once