Skip to content

problem with matching function when using default arguments #9144

Closed
@ferdymercury

Description

@ferdymercury

Describe the bug
Doxygen thinks there are several candidates to a function when there is only one, probably because of the fact that a "using namespace" statement is contained in the .cxx file.

Expected behavior
No warning is raised.

Screenshots

/opt/root_src/graf3d/eve7/src/REveDigitSet.cxx:299: warning: no uniquely matching class member found for 
  void REveDigitSet::DigitColor(UChar_t r, UChar_t g, UChar_t b, UChar_t a)
Possible candidates:
  'void ROOT::Experimental::REveDigitSet::DigitColor(Color_t ci)' at line 116 of file /opt/root_src/graf3d/eve7/inc/ROOT/REveDigitSet.hxx
  'void ROOT::Experimental::REveDigitSet::DigitColor(Color_t ci, Char_t transparency)' at line 117 of file /opt/root_src/graf3d/eve7/inc/ROOT/REveDigitSet.hxx
  'void ROOT::Experimental::REveDigitSet::DigitColor(UChar_t r, UChar_t g, UChar_t b, UChar_t a=255)' at line 118 of file /opt/root_src/graf3d/eve7/inc/ROOT/REveDigitSet.hxx
  'void ROOT::Experimental::REveDigitSet::DigitColor(UChar_t *rgba)' at line 119 of file /opt/root_src/graf3d/eve7/inc/ROOT/REveDigitSet.hxx

To Reproduce
Use reproducer at #9143

Version
1.9.4 (15dae50*)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions