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 c++/15169] [3.5 Regression] " const" on the wrong side of type in error message.


------- Additional Comments From carlo at gcc dot gnu dot org  2004-05-04 16:47 -------
More 'const' and space problems.
I assume the following errors are related to the one descibed above.

../../src/IniFile.cc:88: error: no matching function for call to
`IniFile::Section::Section(xml::node::const_iterator&)'
../../src/include/IniFile.h:39: note: candidates are:
IniFile::Section::Section(constIniFile::Section&)
../../src/include/IniFile.h:63: note:                
IniFile::Section::Section(constxml::node::const_iterator&, IniFile&)
../../src/include/IniFile.h:59: note:                
IniFile::Section::Section(constxml::node::iterator&, IniFile&)

Although there is no space in front of the 'const' here, I expect
this to be solved when the 'const' qualifier is just *always* put
on the righthand side of the type, even if that type is not a pointer
or reference.  Thus,

IniFile::Section::Section(xml::node::iterator const&, IniFile&)



-- 


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


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