Skip to content
Commit 28333c85 authored by Igor Kushnir's avatar Igor Kushnir
Browse files

Fix GCC's "only here as ‘friend’" warning about swap()

The compiler warning reads:
warning: ‘void KDevelop::swap(KDevelop::IndexedString&, KDevelop::IndexedString&)’ has not been declared within ‘KDevelop’
  306 | void KDevelop::swap(IndexedString& a, IndexedString& b) noexcept
note: only here as a ‘friend’
  170 |     friend KDEVPLATFORMSERIALIZATION_EXPORT void swap(IndexedString&, IndexedString&) noexcept;

A relevant Stack Overflow question:
https://stackoverflow.com/questions/44749878/warning-defining-friend-operator-declared-inside-a-namespace
parent c3d9ca6b
Pipeline #126797 passed with stage
in 32 minutes and 25 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment