c++ - Do I need to manually declare >= and <= operators? -
if have operator > , operator < defined (and operator ==), need define operator >= , operator <=, or compiler declare them me if intentionally don't declare them?
also, if have operator == defined, compiler declare operator != me?
no, compiler won't declare/define of operators did not define manually. however, boost.operators might liking - want compiler do.
Comments
Post a Comment