MXS-1810: Format utils.hh

Formatted utils.hh with Astyle.
This commit is contained in:
Markus Mäkelä 2018-04-18 11:30:26 +03:00
parent fd9e5af849
commit 640501c03a
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -190,7 +190,7 @@ struct RegistryTraits
static id_type get_id(entry_type entry)
{
static_assert(sizeof(EntryType) != sizeof(EntryType), "get_id() and the"
" surrounding struct must be specialized for every EntryType!");
" surrounding struct must be specialized for every EntryType!");
return 0;
}
static entry_type null_entry()
@ -273,7 +273,7 @@ private:
template<typename Ptr>
bool equal_pointees(const Ptr& lhs, const Ptr& rhs)
{
return *lhs == *rhs;
return *lhs == *rhs;
}
// Unary predicate for equality of pointed-to objects
@ -281,19 +281,19 @@ template<typename T>
class EqualPointees : public std::unary_function<T, bool>
{
public:
EqualPointees(const T& lhs) : m_ppLhs(&lhs) {}
bool operator()(const T& pRhs)
{
return **m_ppLhs == *pRhs;
}
EqualPointees(const T& lhs) : m_ppLhs(&lhs) {}
bool operator()(const T& pRhs)
{
return **m_ppLhs == *pRhs;
}
private:
const T* m_ppLhs;
const T* m_ppLhs;
};
template<typename T>
EqualPointees<T> equal_pointees(const T& t)
{
return EqualPointees<T>(t);
return EqualPointees<T>(t);
}
}