This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/51539] multiplies ::operator () undocumented


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51539

--- Comment #2 from Christopher Yeleighton <giecrilj at stegny dot 2a.pl> 2011-12-13 23:30:49 UTC ---
(In reply to comment #1)
> It returns x*y, which may or may not be the product, the binary operator* could
> be overloaded for Tp with a completely different meaning.

The result of operator * is a product.  Of course, the kind of product depends
on the operator used.

> 
> Actually I'm wondering if it's worth adding anything here.  What else is
> multiplies going to do, except multiply?  There's already a link to a page
> saying all the arithmetic operations have corresponding functors, it should be
> self-explanatory.

But then the meaning of the types defined by the class is also self-explanatory
and documented elsewhere, yet they are documented.

You choose: either you add one sentence to the documentation or you use so many
sentences to explain why the sentence need not be added.  As you like it.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]