Errors, bugs, questions - page 2006

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
Why should both compile?
In general, I use templates rarely - I did not go into details - I can only explain on an intuitive level
In the 2nd case, a direct replacement of T by A* compiles well - so the template should compile as well
In the 1st case, a direct substitution does not work, but you can add the redundant parameter T2 - with it compiles normally - so it should without it - for this is redundant
Intuitively, const is sometimes part of a type and sometimes just an identifier, that inside the function the pointer will be const.
This can be felt throughPrint(__FUNCSIG__);
Compilation error
That's how it compiles, the original version should not.
Why?
So it's fine. What has changed in principle?
What has changed fundamentally?
The difference is enormous! That's what you called in.
The compiler bugs in the sense that it can't figure out the correct version of the template. Obviously told it to.And it's working.
And it's working.
Why the extra characters?
Why the extra characters?
To show that the compiler doesn't guess at a perfectly workable version of the pattern.
To show that the compiler does not guess at a perfectly workable version of the pattern.
Why should it? ServiceDesk can figure it out on its own
Why?