[Bug 341255] New: cannot use LDAPUrl::getURLString()
https://bugzilla.novell.com/show_bug.cgi?id=341255 Summary: cannot use LDAPUrl::getURLString() Product: openSUSE 11.0 Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: rhafer@novell.com ReportedBy: jsuchome@novell.com QAContact: qa@suse.de Found By: --- I'm getting this error in yast2-ldap: LdapAgent.cc:494: error: passing 'const LDAPUrl' as 'this' argument of 'const std::string& LDAPUrl::getURLString()' discards qualifiers The code with error is this function: 488 // print the debug information about caught Referral Exception 489 void LdapAgent::debug_referral (LDAPReferralException e, string action) 490 { 491 const LDAPUrlList urls = e.getUrls (); 492 y2milestone ("caught referral; size of url list: %zi", urls.size ()); 493 for (LDAPUrlList::const_iterator i=urls.begin(); i!=urls.end(); i++) { 494 y2milestone ("url: %s", i->getURLString ().c_str()); 495 } 496 } Should I get the non-const object from "i" somehow? Or is it a problem with LDAPUrlList class, offering only const iterators? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=341255
Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=341255#c1
Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=341255#c2
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=341255#c3
Stephan Kulow
participants (1)
-
bugzilla_noreply@novell.com