Liste des Groupes | Revenir à cl c++ |
On Fri, 03 Jan 2025 11:22:09 -0800In C++, << and >> have the same precedence with all types - just like all the other operators. The precedences are built into the grammar of the language.
Keith Thompson <Keith.S.Thompson+u@gmail.com> gabbled:Muttley@DastardlyHQ.org writes:What I would expect in a language is for mathematical operators to have theDon't be obtuse for the sake of arguing.>
You used the word "expect". I think you meant that you *want* it to
behave in certain ways. You know the existing rules, and you strongly
dislike them.
same precendence with numeric types whether overloaded or not. This isn't the
case with << and >>.
Les messages affichés proviennent d'usenet.