mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Make CContainerBase::compare public
This workarounds a cppcheck warning. The method was not unused, but cppcheck was complaining.
This commit is contained in:
@@ -57,6 +57,8 @@ namespace BlackMisc
|
||||
template <template <class> class C, class T, class CIt>
|
||||
class CContainerBase : public CValueObject<CContainerBase<C, T, CIt>>, public CRangeBase<C<T>, CIt>
|
||||
{
|
||||
public:
|
||||
|
||||
//! \copydoc BlackMisc::CValueObject::compare
|
||||
friend int compare(const C<T> &a, const C<T> &b)
|
||||
{
|
||||
@@ -65,7 +67,6 @@ namespace BlackMisc
|
||||
return std::lexicographical_compare(a.cbegin(), a.cend(), b.cbegin(), b.cend());
|
||||
}
|
||||
|
||||
public:
|
||||
/*!
|
||||
* \brief Return a new container of a different type, containing the same elements as this one.
|
||||
* \tparam Other the type of the new container.
|
||||
|
||||
Reference in New Issue
Block a user