Make CContainerBase::compare public

This workarounds a cppcheck warning. The method was not unused,
but cppcheck was complaining.
This commit is contained in:
Roland Winklmeier
2015-04-03 11:39:54 +02:00
parent 4d4acb20bc
commit f71e0a89fb

View File

@@ -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.