On 9/24/20 1:53 AM, Martin Sebor wrote:

Finally, unless both a type and function with the same name exist
in the same scope there is no reason to mention the class-id when
referencing a class name.  I.e., this

   value_range_equiv *allocate_value_range_equiv ();
   void free_value_range_equiv (value_range_equiv *);

is the same as this:

   class value_range_equiv *allocate_value_range_equiv ();
   void free_value_range_equiv (class value_range_equiv *);

but the former is shorter and clearer (and in line with existing
practice).

value_range_equiv may not be defined in the scope of range-query.h, so that is why the class specifier is there.

Aldy

Reply via email to